When does rm matter for fcvt.h.wu?
When the integer value cannot be exactly represented in the destination floating-point format, rm or dynamic frm selects the rounding direction.
Convert unsigned 32-bit int to half FP. R-type, fmt=H(10). Large values lose precision.
fcvt.h.wu converts an unsigned 32-bit integer source to a half-precision floating-point result. If the value is not exactly representable, the result is rounded according to rm and written to f[rd].
fcvt.h.wu converts an unsigned 32-bit integer source to a half-precision floating-point result. If the value is not exactly representable, the result is rounded according to rm and written to f[rd].
Understand this scenario with real code like «fcvt.h.wu f0, x10, rne # f0 = (half)(unsigned)x10».
Understand this scenario with real code like «fcvt.h.wu f0, x10, rne # f0 = (half)(unsigned)x10».
When the integer value cannot be exactly represented in the destination floating-point format, rm or dynamic frm selects the rounding direction.
It differs by source/destination format, integer signedness, RV64 restrictions, and whether rounding or invalid conversion can occur.