FCVT.S.W
Float Convert from Word (Single)
FCVT.S.W rd, rs1
Converts a signed 32-bit integer to a single-precision floating-point number.
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
F[rd] = i32_to_f32(R[rs1]);
Example
FCVT.S.W f1, x10
Encoding
Binary Layout
1101000
31:25
00000
24:20
rs1
19:15
rm
rd
14:10
1010011
9:3
Operands
-
rd
Dest (Float) -
rs1
Source (Integer)