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

RISC-V: Enable macro-fusion pairs for xt-c9501fdvt

RISC-V xt-c9501fdvt tuning now enables supported integer load/store pair macro-fusion operations.

This commit enables specific macro-fusion operations for the RISC-V xt-c9501fdvt tuning, including ascending and descending integer load/store pairs. Floating-point load/store pairs remain disabled for this particular tuning. The changes introduce new test cases and modify existing ones to exercise the enabled fusion matchers across various scenarios, such as RV32 Zilsd overlap and independent cases for load pairs, ADD_ST, PREINDEX_ST, and POSTINDEX_ST. This aims to improve instruction scheduling and code density for this specific RISC-V configuration.

In Details

The RISC-V backend has been updated to enable macro-fusion for integer load/store pairs on the xt-c9501fdvt tuning. This involves modifying riscv.cc to include support for these paired operations in the xt_c9501_tune_info. The fusion is intended to improve instruction scheduling efficiency by combining adjacent load/store operations into single, more complex instructions where supported by the microarchitecture. Test cases in gcc.target/riscv/ have been adjusted to verify the functionality, with some existing XFAILs removed as the fusion is now expected to work correctly for these ins…

For Context
macro-fusion
A compiler optimization that combines two or more simple instructions into a single, more complex instruction, often improving performance by reducing instruction fetch and decode overhead.
RISC-V
An open-standard instruction set architecture based on Reduced Instruction Set Computer principles.
xt-c9501fdvt
A specific tuning or configuration profile for a RISC-V processor, likely indicating a particular core or feature set.
load/store pairs
Instructions that load or store multiple consecutive memory locations in a single operation, improving memory access efficiency.
Zilsd
A RISC-V extension, likely related to integer load and store operations.
Filed Under: risc-vmacro-fusioncode generationoptimization