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

froundnx.d

T1 riscv fp insn
Floating-Point Round-to-Integer Inexact 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 froundnx.d instruction is defined in the same way as fround.d, but it also sets the inexact exception flag if the input differs from the rounded result and is not NaN. froundnx.d is encoded like fcvt.d.s, but with xs2 set to 5.

Syntax / Encoding

froundnx.d fd, fs1, rm | 010000100101xxxxxxxxxxxxx1010011 (mask=0xfff0007f match=0x42500053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV010000100101xxxxxxxxxxxxx10100110xfff0007f / 0x42500053

Operands

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

Reference Notes

The `froundnx.d` instruction is defined in the same way as `fround.d`, but it also sets the inexact exception flag if the input
differs from the rounded result and is not NaN. `froundnx.d` is encoded like `fcvt.d.s`, but with `xs2` set to 5.