Zfa Instructions
6 RISC-V instructions in this extension - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | Format | Summary |
|---|---|---|---|
| FLI.D | FLI.D rd, rs1 | R-Type | Loads a common double-precision constant into a register. |
| FLI.H | FLI.H rd, rs1 | R-Type | Loads a common half-precision constant into a register. |
| FLI.S | FLI.S rd, rs1 | R-Type | Loads a common floating-point constant (e.g., 1.0, 0.5, PI) into a register from a small table. |
| FMAXM.S | FMAXM.S rd, rs1, rs2 | R-Type | Maximum of two floats, treating +0.0 as larger than -0.0. |
| FMINM.S | FMINM.S rd, rs1, rs2 | R-Type | Minimum of two floats, treating -0.0 as smaller than +0.0 (canonicalize NaNs). |
| FROUND.S | FROUND.S rd, rs1, rm | I-Type | Rounds a float to the nearest integer value (returned as a float). |