Q instructions
Quad-Precision Floating-Point
128-bit quad-precision binary floating-point instructions compliant with the IEEE 754-2008
arithmetic standard.
Q depends on the double-precision floating-point extension D.
With Q, the floating-point registers are extended to hold either a single, double, or quad-precision
floating-point value (FLEN=128).
The NaN-boxing is extended recursively to allow a single-precision value to be NaN-boxed inside
a double-precision value which is itself NaN-boxed inside a quad-precision value.
Extension description from riscv-unified-db, reformatted.
Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/q-st-ext.adoc.
Instructions (46)
| Mnemonic | Name (riscv-unified-db) | XLEN |
|---|---|---|
fabs.q | (pseudo-op) | RV32 and RV64 |
fadd.q | Floating-point Add Quad-Precision | RV32 and RV64 |
fclass.q | Floating-Point Classify Quad-Precision | RV32 and RV64 |
fcvt.d.q | Floating-Point Convert Quad-Precision to Double-Precision | RV32 and RV64 |
fcvt.h.q | Floating-point Convert Quad-precision to Half-precision | RV32 and RV64 |
fcvt.l.q | Floating-Point Convert Quad-Precision to Long | RV64 only |
fcvt.lu.q | Floating-Point Convert Quad-Precision to Unsigned Long | RV64 only |
fcvt.q.d | Floating-Point Convert Double-Precision to Quad-Precision | RV32 and RV64 |
fcvt.q.h | Floating-point Convert Half-precision to Quad-precision | RV32 and RV64 |
fcvt.q.l | Floating-Point Convert Long to Quad-Precision | RV64 only |
fcvt.q.lu | Floating-Point Convert Unsigned Long to Quad-Precision | RV64 only |
fcvt.q.s | Floating-Point Convert Single-Precision to Quad-Precision | RV32 and RV64 |
fcvt.q.w | Floating-Point Convert Word to Quad-Precision | RV32 and RV64 |
fcvt.q.wu | Floating-Point Convert Unsigned Word to Quad-Precision | RV32 and RV64 |
fcvt.s.q | Floating-Point Convert Quad-Precision to Single-Precision | RV32 and RV64 |
fcvt.w.q | Floating-point Convert Quad-precision to Word | RV32 and RV64 |
fcvt.wu.q | Floating-Point Convert Quad-Precision to Unsigned Word | RV32 and RV64 |
fdiv.q | Floating-Point Divide Quad-Precision | RV32 and RV64 |
feq.q | Floating-Point Equal Quad-Precision | RV32 and RV64 |
fle.q | Floating-Point Less Than or Equal Quad-Precision | RV32 and RV64 |
fleq.q | Floating-Point Less Than or Equal Quiet Quad-Precision | RV32 and RV64 |
fli.q | Floating-Point Load Immediate Quad-Precision | RV32 and RV64 |
flq | Floating-Point Load Quad-Precision | RV32 and RV64 |
flt.q | Floating-Point Less Than Quad-Precision | RV32 and RV64 |
fltq.q | Floating-Point Less Than Quiet Quad-Precision | RV32 and RV64 |
fmadd.q | Floating-Point Multiply-Add Quad-Precision | RV32 and RV64 |
fmax.q | Floating-Point Maximum-Number Quad-Precision | RV32 and RV64 |
fmaxm.q | Floating-Point Maximum-Number NaN Quad-Precision | RV32 and RV64 |
fmin.q | Floating-Point Minimum-Number Quad-Precision | RV32 and RV64 |
fminm.q | Floating-Point Minimum-Number NaN Quad-Precision | RV32 and RV64 |
fmsub.q | Floating-Point Multiply-Subtract Quad-Precision | RV32 and RV64 |
fmul.q | Floating-point Multiply Quad-Precision | RV32 and RV64 |
fmv.q | (pseudo-op) | RV32 and RV64 |
fmvh.x.q | Floating-Point Move High Half to Integer from Quad-Precision | RV64 only |
fmvp.q.x | Floating-Point Move Pair from Integer Registers to Quad-Precision Register | RV64 only |
fneg.q | (pseudo-op) | RV32 and RV64 |
fnmadd.q | Floating-Point Negate-Multiply-Add Quad-Precision | RV32 and RV64 |
fnmsub.q | Floating-Point Negate-Multiply-Subtract Quad-Precision | RV32 and RV64 |
fround.q | Floating-Point Round Quad-Precision | RV32 and RV64 |
froundnx.q | Floating-Point Round-to-Integer Inexact Quad-Precision | RV32 and RV64 |
fsgnj.q | Floating-Point Sign-Inject Quad-Precision | RV32 and RV64 |
fsgnjn.q | Floating-Point Sign-Inject Negate Quad-Precision | RV32 and RV64 |
fsgnjx.q | Floating-Point Sign-Inject XOR Quad-Precision | RV32 and RV64 |
fsq | Floating-Point Store Quad-Precision | RV32 and RV64 |
fsqrt.q | Floating-Point Square Root Quad-Precision | RV32 and RV64 |
fsub.q | Floating-Point Subtract Quad-Precision | RV32 and RV64 |