GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
risc-v

RISC-V: Enable Zfa and Zawrs in RVB23U64

RISC-V: RVB23U64 profile now includes mandatory Zfa and Zawrs extensions as per specification.

This commit updates the RISC-V RVB23U64 profile to include the mandatory Zfa (Addition and FormsModule) and Zawrs (Addition/Word/Rotate/Shift) extensions, as required by section 3.1.1.2 of the RVB23 Profiles v1.0 specification. While the specification mandates these extensions, the profile’s ISA string omitted them. This change corrects the profile definition and updates a test case to expect Zmmul, which is implied by the M extension also present in the profile.

In Details

The RVB23 Profiles v1.0 specification mandates Zfa and Zawrs for the RVB23U64 profile. This commit adds these extensions to the rvb23u64 definition in config/riscv/riscv-profiles.def. Previously, the ISA string omitted them. The test gcc.target/riscv/arch-54.c is updated to include Zmmul in the expected ISA string, as it is implied by the presence of the M (Integer Multiplication and Division) extension.

For Context
RISC-V
An open-standard instruction set architecture (ISA) based on Reduced Instruction Set Computing principles.
RVB23U64
A specific profile within the RISC-V architecture, likely defined for 64-bit embedded systems, that includes a standard set of mandatory and optional extensions.
Zfa
A RISC-V standard extension providing additional arithmetic andFormsModule instructions.
Zawrs
A RISC-V standard extension providing instructions for addition, word operations, rotate, and shift.
M extension
The base RISC-V extension for integer multiplication and division operations.
Zmmul
A RISC-V standard extension related to multiplication, likely providing additional or specific multiplication instructions.
Filed Under: RISC-Vembeddedextensionsprofiles