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, setting NX when required.
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. The FROUNDNX form sets NX when the result is inexact. A signaling NaN sets NV; quiet NaNs follow the floating-point NaN result rules.
FROUNDNX.S differs from FCVT by output type: FROUNDNX.S still writes a floating-point register, with the value rounded to an integral value. FROUNDNX also reports inexact NX.
Understand this scenario with real code like «froundnx.s f10, f11, rne ; round f11 with inexact detection».
Understand this scenario with real code like «froundnx.s f10, f11, rne ; round f11 with inexact detection».
No. The result is written to floating-point register f[rd]; the floating-point value is integral.
FROUNDNX sets NX when inexact; FROUND does not set NX.