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

fmsub.q

T1 riscv fp insn
Floating-Point Multiply-Subtract 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 fmsub.q instruction performs a floating-point multiply-subtract 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

fmsub.q fd, fs1, fs2, fs3, rm | xxxxx11xxxxxxxxxxxxxxxxxx1000111 (mask=0x0600007f match=0x06000047)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RVxxxxx11xxxxxxxxxxxxxxxxxx10001110x0600007f / 0x06000047

Operands

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

Reference Notes

The `fmsub.q` instruction performs a floating-point multiply-subtract 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`.