ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

fmadd.q

T1 riscv fp insn
Floating-Point Multiply-Add Quad-Precision
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Q
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsQ

Summary

The fmadd.q instruction performs a floating-point multiply-add operation on the values in registers fs1, fs2, and fs3. It computes the result as (fs1 * fs2) + fs3 and writes the result to the destination register fd.

Syntax / Encoding

fmadd.q fd, fs1, fs2, fs3, rm | xxxxx11xxxxxxxxxxxxxxxxxx1000011 (mask=0x0600007f match=0x06000043)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RVxxxxx11xxxxxxxxxxxxxxxxxx10000110x0600007f / 0x06000043

Operands

NameDescription
fs3bits [31:27]
fs2bits [24:20]
fs1bits [19:15]
rmbits [14:12]
fdbits [11:7]

Reference Notes

The `fmadd.q` instruction performs a floating-point multiply-add operation on the values in registers `fs1`, `fs2`, and `fs3`.
It computes the result as `(fs1 * fs2) + fs3` and writes the result to the destination register `fd`.

The fused multiply-add instructions must set the invalid operation exception flag when the
multiplicands are latexmath:[$\infty$] and zero, even when the addend is a quiet _NaN_.