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

fround.q

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

Summary

The fround.q instruction rounds the quad-precision floating-point number in floating-point register fs1 to an integer, according to the rounding mode specified in the instruction's rm field. It then writes that integer, represented as a quad-precision floating-point number, to floating-point register fd. Zero and infinite inputs are copied to fd unmodified. Signaling _NaN_ inputs cause the invalid operation…

Syntax / Encoding

fround.q fd, fs1, rm | 010001100100xxxxxxxxxxxxx1010011 (mask=0xfff0007f match=0x46400053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV010001100100xxxxxxxxxxxxx10100110xfff0007f / 0x46400053

Operands

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

Reference Notes

The `fround.q` instruction rounds the quad-precision floating-point number in floating-point register
`fs1` to an integer, according to the rounding mode specified in the instruction's `rm` field. It then writes
that integer, represented as a quad-precision floating-point number, to floating-point register `fd`. Zero
and infinite inputs are copied to `fd` unmodified. Signaling _NaN_ inputs cause the invalid operation
exception flag to be set; no other exception flags are set. `fround.q` is encoded like `fcvt.q.s`, but with
`rs2`=4.