FCVT.WU.H

Convert Half to Unsigned Word

FCVT.WU.H rd, rs1

Converts a 16-bit floating-point number 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(f16_to_u32(F[rs1]));

Example

FCVT.WU.H t0, a0

Encoding

Binary Layout
110001000001
31:20
rs1
19:15
rm
14:12
rd
11:7
1010011
6:0
 
Format I-Type (Float)
Opcode 0xC4100053
Extension Zfh

Operands

  • rd
    Dest (UInt)
  • rs1
    Src (Half)