When does rm matter for fcvt.wu.h?
When conversion requires rounding, rm or dynamic frm selects the rounding direction; out-of-range or NaN inputs follow the official invalid-conversion rule.
Convert half FP to unsigned 32-bit int. R-type, fmt=WU(01), rs2=H(10).
fcvt.wu.h converts a half-precision source operand to an unsigned 32-bit integer result. Floating-point-to-integer conversion rounds according to rm and writes integer register rd.
fcvt.wu.h converts a half-precision source operand to an unsigned 32-bit integer result. Floating-point-to-integer conversion rounds according to rm and writes integer register rd.
Understand this scenario with real code like «fcvt.wu.h x10, f0, rtz # x10 = (unsigned)f0».
Understand this scenario with real code like «fcvt.wu.h x10, f0, rtz # x10 = (unsigned)f0».
When conversion requires rounding, rm or dynamic frm selects the rounding direction; out-of-range or NaN inputs follow the official invalid-conversion rule.
It differs by source/destination format, integer signedness, RV64 restrictions, and whether rounding or invalid conversion can occur.