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

fround.d

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

Summary

The fround.d instruction rounds the double-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 double-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.d fd, fs1, rm | 010000100100xxxxxxxxxxxxx1010011 (mask=0xfff0007f match=0x42400053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV010000100100xxxxxxxxxxxxx10100110xfff0007f / 0x42400053

Operands

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

Reference Notes

The `fround.d` instruction rounds the double-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 double-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.d` is encoded like `fcvt.d.s`, but with
`xs2` set to 4.