When does rm matter for fcvt.s.h?
It does not matter for the numeric result. This form is an exact widening conversion and does not require rounding.
Convert half-precision float to single-precision float
fcvt.s.h converts a half-precision source operand to a wider single-precision result. This floating-point widening conversion is exact and does not round.
fcvt.s.h converts a half-precision source operand to a wider single-precision result. This floating-point widening conversion is exact and does not round.
Understand this scenario with real code like «fcvt.s.h f10, f11 ; f10 = (float)f11».
Understand this scenario with real code like «fcvt.s.h f10, f11 ; f10 = (float)f11».
It does not matter for the numeric result. This form is an exact widening conversion and does not require rounding.
It differs by source/destination format, integer signedness, RV64 restrictions, and whether rounding or invalid conversion can occur.