FCVT.WU.S

Convert Float to Unsigned Word

FCVT.WU.S rd, rs1

Converts a single-precision float to a 32-bit unsigned integer.

Details

Converts between floating-point types or between floating-point and integer. Result is rounded according to the dynamic rounding mode. Invalid conversions produce the IEEE default NaN or the appropriate integer saturation value.

Pseudocode Operation

R[rd] = sext(f32_to_u32(F[rs1]));

Example

FCVT.WU.S x10, f1

Encoding

Binary Layout
1100000
31:25
00001
24:20
rs1
19:15
rm
rd
14:10
1010011
9:3
 
Format I-Type (Float)
Opcode 0x53
Extension F

Operands

  • rd
    Dest (UInt)
  • rs1
    Source (Float)