Does FROUNDNX.S write an integer register?
No. The result is written to floating-point register f[rd]; the floating-point value is integral.
Round a single-precision floating-point value to an integral value in the same FP format; set NX only when the input is not NaN and differs from the rounded result.
FROUNDNX.S rounds the single-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 single-precision floating-point format. It sets NX only when the input is not NaN and differs from the rounded result. A signaling NaN sets NV; a quiet NaN produces the canonical NaN under the general FP NaN rule.
Shows the Zfa + F-extension single-precision OP-FP flow: decode fields, read FP operands, perform FROUNDNX semantics, then write rd.
The word is split as an R-type OP-FP instruction; single-precision OP-FP instructions use opcode 1010011.
This bounded teaching model computes whitelisted finite examples plus zero, infinity, and NaN; FROUNDNX.S writes the integral value in S format. Zero and infinity are copied. NX is set when the input differs from the rounded result and is not NaN.
This bounded teaching model computes whitelisted finite examples plus zero, infinity, and NaN; FROUNDNX.S writes the integral value in S format. Zero and infinity are copied. NX is set when the input differs from the rounded result and is not NaN.
This animation shows only Zfa + F-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.
FROUNDNX.S differs from FCVT by output type: FROUNDNX.S still writes a floating-point register, with the value rounded to an integral value. It reports NX when a non-NaN input changes.
Understand this scenario with real code like «froundnx.s f10, f11, rne ; NX only when non-NaN f11 changes after rounding».
Understand this scenario with real code like «froundnx.s f10, f11, rne ; NX only when non-NaN f11 changes after rounding».
No. The result is written to floating-point register f[rd]; the floating-point value is integral.
FROUNDNX sets NX only when the input is not NaN and differs from the rounded result; FROUND does not set NX.