Does FROUND.Q write an integer register?
No. The result is written to floating-point register f[rd]; the floating-point value is integral.
Round a quad-precision floating-point value to an integral value in the same FP format, without setting NX.
FROUND.Q rounds the quad-precision floating-point value in f[rs1] to an integral value according to rm, but writes the result back to f[rd] in the same quad-precision floating-point format. The FROUND form does not set the inexact NX flag. A signaling NaN sets NV; quiet NaNs follow the floating-point NaN result rules.
Shows the Zfa + Q-extension quad-precision OP-FP flow: decode fields, read FP operands, perform FROUND semantics, then write rd.
The word is split as an R-type OP-FP instruction; quad-precision OP-FP instructions use opcode 1010011.
This bounded teaching model computes whitelisted finite examples plus zero, infinity, and NaN; FROUND.Q writes the integral value in Q format. Zero and infinity are copied. FROUND does not set NX and sets no exception flags other than NV.
This bounded teaching model computes whitelisted finite examples plus zero, infinity, and NaN; FROUND.Q writes the integral value in Q format. Zero and infinity are copied. FROUND does not set NX and sets no exception flags other than NV.
This animation shows only Zfa + Q-extension ISA-visible OP-FP encoding, example numeric results, and fflags relationship; it does not model FPU pipelines, latency, every IEEE 754 corner case, or microarchitecture.
FROUND.Q differs from FCVT by output type: FROUND.Q still writes a floating-point register, with the value rounded to an integral value. FROUND deliberately does not report inexact NX.
Understand this scenario with real code like «fround.q f0, f1, rne # f0 = round(f1), no inexact flag».
Understand this scenario with real code like «fround.q f0, f1, rne # f0 = round(f1), no inexact flag».
No. The result is written to floating-point register f[rd]; the floating-point value is integral.
FROUND does not set NX; FROUNDNX sets NX only when the input differs from the rounded result and is not NaN.