Double-precision floating-point instructions using integer registers
Type: unprivileged
Zfinx
| Version | State | Ratified |
|---|---|---|
| 1.0.0 | ratified | 2021-11 |
The Zdinx extension provides analogous double-precision floating-point instructions.
The Zdinx extension adds all of the instructions that the D extension adds, except for the transfer instructions FLD, FSD, FMV.D.X, FMV.X.D, C.FLD[SP], and C.FSD[SP].
The Zdinx variants of these D-extension instructions have the same semantics, except that whenever such an instruction would have accessed an f register, it instead accesses the x register with the same number.
Processing of Wider Values Double-precision operands in RV32Zdinx are held in aligned x-register pairs, i.e., register numbers must be even. Use of misaligned (odd-numbered) registers for double-width floating-point operands is reserved.
Regardless of endianness, the lower-numbered register holds the low-order bits, and the higher-numbered register holds the high-order bits: e.g., bits 31:0 of a double-precision operand in RV32Zdinx might be held in register x14, with bits 63:32 of that operand held in x15.
When a double-width floating-point result is written to x0, the entire write takes no effect: e.g., for RV32Zdinx, writing a double-precision result to x0 does not cause x1 to be written.
When x0 is used as a double-width floating-point operand, the entire operand is zero—i.e., x1 is not accessed.
Load-pair and store-pair instructions are contained in a separate extension (see Section Extensions for Load/Store pair for RV32). In case this is not available, transferring double-precision operands in RV32Zdinx from or to memory requires two loads or stores. Register moves need only a single FSGNJ.D instruction, however.
fadd.d — Floating-Point Add Double-Precisionfclass.d — Floating-Point Classify Double-Precisionfcvt.d.h — Floating-Point Convert Half-Precision to Double-Precisionfcvt.d.l — Floating-Point Convert Long to Double-Precisionfcvt.d.lu — Floating-Point Convert Unsigned Long to Double-Precisionfcvt.d.s — Floating-Point Convert Single-Precision to Double-Precisionfcvt.d.w — Floating-Point Convert Word to Double-Precisionfcvt.d.wu — Floating-Point Convert Unsigned Word to Double-Precisionfcvt.h.d — Floating-point Convert Double-precision to Half-precisionfcvt.l.d — Floating-Point Convert Double-Precision to Longfcvt.lu.d — Floating-Point Convert Double-Precision to Unsigned Longfcvt.s.d — Floating-Point Convert Double-Precision to Single-Precisionfcvt.w.d — Floating-Point Convert Double-Precision to Wordfcvt.wu.d — Floating-Point Convert Double-Precision to Unsigned Wordfdiv.d — Floating-Point Divide Double-Precisionfeq.d — Floating-Point Equal Double-Precisionfle.d — Floating-Point Less Than or Equal Double-Precisionflt.d — Floating-Point Less Than Double-Precisionfmadd.d — Floating-Point Multiply-Add Double-Precisionfmax.d — Floating-Point Maximum-Number Double-Precisionfmin.d — Floating-Point Minimum-Number Double-Precisionfmsub.d — Floating-Point Multiply-Subtract Double-Precisionfmul.d — Floating-Point Multiply Double-Precisionfnmadd.d — Floating-Point Negate-Multiply-Add Double-Precisionfnmsub.d — Floating-Point Negate-Multiply-Subtract Double-Precisionfsgnj.d — Floating-Point Sign-Inject Double-Precisionfsgnjn.d — Floating-Point Sign-Inject Negate Double-Precisionfsgnjx.d — Floating-Point Sign-Inject XOR Double-Precisionfsqrt.d — Floating-Point Square Root Double-Precisionfsub.d — Floating-Point Subtract Double-PrecisionVersion af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.