FSQRT.H

Float Square Root (Half)

FSQRT.H rd, rs1

Computes the square root of a 16-bit floating-point number.

Encoding

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

Operands

  • rd
    Destination floating-point register
  • rs1
    Floating-point register

Example

FSQRT.H ft0, fa0

Related

More in Zfh

Description

FSQRT.H computes the square root of the half-precision value in rs1 and writes the result to rd. The result is rounded according to the rm field (rm=DYN selects the rounding mode held in frm) and the accrued exception flags are updated in fflags.

Operation

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