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

RISC-V: Introduce fminmax instruction type for floating-point operations

Adds a new 'fminmax' instruction type for RISC-V floating-point min/max operations, improving scheduling accuracy.

A new instruction type, ‘fminmax’, has been introduced for RISC-V to specifically handle floating-point minimum and maximum operations. Previously, these were incorrectly categorized as ‘fmove’, leading to inaccurate latency predictions. This change separates them, allowing for precise scheduling without altering current performance profiles.

In Details

The RISC-V machine description (riscv.md) now defines a distinct instruction type fminmax. This type is used for floating-point minimum (fmin) and maximum (fmax) instructions, as well as their signed variants. Previously, these instructions were incorrectly classified under the fmove type, which has a default latency of 1 cycle. The new fminmax type is also assigned a 1-cycle latency by default in various scheduling models (e.g., generic_ooo_float_move, xiangshan_f2f), ensuring that existing scheduling behavior remains unchanged while improving the semantic correctness of the…

For Context
RISC-V
An open-standard instruction set architecture (ISA) based on Reduced Instruction Set Computer principles.
instruction type
A classification of instructions within a processor's architecture, often used for scheduling and resource allocation.
fminmax
A new instruction type in RISC-V GCC for floating-point minimum and maximum operations.
fmove
An existing instruction type, previously used for floating-point min/max operations, typically associated with register moves.
latency
The delay between initiating an instruction and the availability of its result.
scheduling
The process of ordering instructions to optimize execution on a processor, considering dependencies and resource availability.
machine description
Configuration files (e.g., .md files) that describe the instruction set and microarchitectural features of a target processor to the compiler.
Filed Under: risc-vcompileroptimizationscheduling