Which register classes do rd and rs1 use in fcvt.d.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 double: f[rd] = (double)(uint32_t)rs1. Always exact.
fcvt.d.wu converts an unsigned 32-bit integer source to a double-precision floating-point result. This conversion is exact, so the encoded rounding mode does not change the numeric result.
Shows the D-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.
A 32-bit integer is exactly representable as double precision, so example fflags remains 0.
A 32-bit integer is exactly representable as double precision, so example fflags remains 0.
This animation shows only D-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.d.wu reads an unsigned 32-bit integer from integer register rs1, converts it to double precision, and writes f[rd]; uint32 is exactly representable as double, so the numeric result does not depend on rm.
Understand this scenario with real code like «fcvt.d.wu f0, x10, rne # f0 = (double)(unsigned)x10».
This is an integer-to-floating-point conversion: rs1 is an integer register and rd is a floating-point register.
A 32-bit integer to double-precision conversion is exact, so rm is encoded but does not change the numeric result.
rs2 is not an ordinary source register; in the FCVT encoding it selects the WU unsigned 32-bit integer format.