Which register classes do rd and rs1 use in fcvt.s.wu?
This is an integer-to-floating-point conversion: rs1 is an integer register and rd is a floating-point register.
Convert unsigned int32 to SP FP: f[rd] = (float)(uint32_t)rs1.
fcvt.s.wu converts an unsigned 32-bit integer source to a single-precision floating-point result. If the value is not exactly representable, the result is rounded according to rm and written to f[rd].
Shows the F-extension FCVT flow: decode OP-FP fields, fmt/rs2 conversion selection, rm rounding, read the integer source, then write the floating-point destination.
The word is split as an R-type OP-FP instruction; FCVT conversion instructions use opcode 1010011.
The current 32-bit integer example is not exactly representable as S format, so the rounded example shows NX.
The current 32-bit integer example is not exactly representable as S format, so the rounded example shows NX.
This animation shows only F-extension FCVT ISA-visible encoding, source/destination register direction, rounding field, and example fflags; it does not model FPU pipelines, exception handling, NaN payloads, or microarchitecture.
fcvt.s.wu reads an unsigned 32-bit integer from integer register rs1, converts it to single precision, and writes f[rd]; large integers that are not exactly representable round according to rm and set NX.
Understand this scenario with real code like «fcvt.s.wu f0, x10, rne # f0 = (float)(unsigned)x10».
This is an integer-to-floating-point conversion: rs1 is an integer register and rd is a floating-point register.
When the destination format cannot exactly represent the converted result, rm or DYN/frm selects the rounding direction; inexact conversion sets NX.
rs2 is not an ordinary source register; in the FCVT encoding it selects the WU unsigned 32-bit integer format.