ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

fdiv.q

T1 riscv fp insn
Floating-Point Divide 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 fdiv.q performs the quad-precision floating-point division of fs1 by fs2 and writes the result to floating-point register fd. The rounding mode is specified by the value in the floating-point Control and Status register (FCSR) or by the value in the rm field of the instruction.

Syntax / Encoding

fdiv.q fd, fs1, fs2, rm | 0001111xxxxxxxxxxxxxxxxxx1010011 (mask=0xfe00007f match=0x1e000053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0001111xxxxxxxxxxxxxxxxxx10100110xfe00007f / 0x1e000053

Operands

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

Reference Notes

The `fdiv.q` performs the quad-precision floating-point division of `fs1` by `fs2` and writes
the result to floating-point register `fd`.`
The rounding mode is specified by the value in the floating-point Control and Status register (FCSR)
or by the value in the `rm` field of the instruction.

The operation is performed according to the IEEE 754-2008 standard for quad-precision floating-point arithmetic.

The instruction sets the floating-point exception flags according to the result of the operation.