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
Operands
-
rd
Destination floating-point register -
rs1
Floating-point register
Example
FSQRT.H ft0, fa0
Related
More in Zfh
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
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]);