FCVT.S.H

Convert Half to Single

FCVT.S.H rd, rs1

Converts a 16-bit half-precision float to a 32-bit single-precision float.

Encoding

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

Operands

  • rd
    Dest (Single)
  • rs1
    Source (Half)

Example

FCVT.S.H f0, f1

// Promote Half to Float.

Related

More in Zfhmin

Description

Converts the half-precision value in rs1 to single precision and writes it to rd. The conversion is exact, so the rm field has no effect. A NaN input gives the canonical NaN (a signalling NaN also sets the invalid-operation flag). Requires Zfhmin or Zfh.

Operation

F[rd] = f16_to_f32(F[rs1]);