Zfa instructions
Additional Floating-Point Instructions
Zfa adds instructions for immediate loads, IEEE 754-2019 minimum and maximum operations,
round-to-integer operations, and quiet floating-point comparisons.
For RV32D, the Zfa extension also adds instructions to transfer double-precision floating-point
values to and from integer registers, and for RV64Q, it adds analogous instructions for
quad-precision floating-point values.
The Zfa extension depends on the F extension.
Extension description from riscv-unified-db, reformatted.
Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zfa.adoc.
Instructions (33)
| Mnemonic | Name (riscv-unified-db) | XLEN |
|---|---|---|
fcvtmod.w.d | Floating-Point Convert Double-Precision to Word with Modulo | RV32 and RV64 |
fleq.d | Floating-Point Less Than or Equal Quiet Double-Precision | RV32 and RV64 |
fleq.h | No synopsis available | RV32 and RV64 |
fleq.q | Floating-Point Less Than or Equal Quiet Quad-Precision | RV32 and RV64 |
fleq.s | Floating-Point Less Than or Equal Quiet Single-Precision | RV32 and RV64 |
fli.d | Floating-Point Load Immediate Double-Precision | RV32 and RV64 |
fli.h | Floating-point Load Immediate Half-precision | RV32 and RV64 |
fli.q | Floating-Point Load Immediate Quad-Precision | RV32 and RV64 |
fli.s | No synopsis available | RV32 and RV64 |
fltq.d | Floating-Point Less Than Quiet Double-Precision | RV32 and RV64 |
fltq.h | No synopsis available | RV32 and RV64 |
fltq.q | Floating-Point Less Than Quiet Quad-Precision | RV32 and RV64 |
fltq.s | Floating-Point Less Than Quiet Single-Precision | RV32 and RV64 |
fmaxm.d | Floating-Point Maximum-Number NaN Double-Precision | RV32 and RV64 |
fmaxm.h | No synopsis available | RV32 and RV64 |
fmaxm.q | Floating-Point Maximum-Number NaN Quad-Precision | RV32 and RV64 |
fmaxm.s | No synopsis available | RV32 and RV64 |
fminm.d | Floating-Point Minimum-Number NaN Double-Precision | RV32 and RV64 |
fminm.h | No synopsis available | RV32 and RV64 |
fminm.q | Floating-Point Minimum-Number NaN Quad-Precision | RV32 and RV64 |
fminm.s | No synopsis available | RV32 and RV64 |
fmvh.x.d | Floating-Point Move High Half from Double-Precision Register to Integer Register | RV32 only |
fmvh.x.q | Floating-Point Move High Half to Integer from Quad-Precision | RV64 only |
fmvp.d.x | Floating-Point Move Pair from Integer Registers to Double-Precision Register | RV32 only |
fmvp.q.x | Floating-Point Move Pair from Integer Registers to Quad-Precision Register | RV64 only |
fround.d | Floating-Point Round Double-Precision | RV32 and RV64 |
fround.h | No synopsis available | RV32 and RV64 |
fround.q | Floating-Point Round Quad-Precision | RV32 and RV64 |
fround.s | Floating-point round single-precision float to integer | RV32 and RV64 |
froundnx.d | Floating-Point Round-to-Integer Inexact Double-Precision | RV32 and RV64 |
froundnx.h | No synopsis available | RV32 and RV64 |
froundnx.q | Floating-Point Round-to-Integer Inexact Quad-Precision | RV32 and RV64 |
froundnx.s | Floating-point Round Single-precision to Integer with Inexact | RV32 and RV64 |