FCVT.H.S
Convert Single to Half
FCVT.H.S rd, rs1
Converts a 32-bit single-precision float to a 16-bit half-precision float.
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] = f32_to_f16(F[rs1]);
Example
FCVT.H.S f0, f1
Encoding
Binary Layout
010001000000
31:20
rs1
19:15
rm
14:12
rd
11:7
1010011
6:0
Operands
-
rd
Dest (Half) -
rs1
Source (Single)