FCVT.WU.S
Convert Float to Unsigned Word
FCVT.WU.S rd, rs1
Converts a single-precision float to a 32-bit unsigned integer.
Encoding
Binary Layout
110000000001
31:20
rs1
19:15
rm
14:12
rd
11:7
1010011
6:0
Operands
-
rd
Dest (UInt) -
rs1
Source (Float)
Example
FCVT.WU.S x10, f1
// Float -> Unsigned Int.
Related
More in F
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
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.
Operation
R[rd] = sext(f32_to_u32(F[rs1]));