FLE.H
Float Less or Equal (Half)
FLE.H rd, rs1, rs2
Sets integer rd to 1 if half-precision rs1 is less than or equal to rs2, else 0.
Encoding
Binary Layout
1010010
31:25
rs2
24:20
rs1
19:15
000
14:12
rd
11:7
1010011
6:0
Operands
-
rd
Destination integer register (0 or 1) -
rs1
Floating-point register (first operand) -
rs2
Floating-point register (second operand)
Example
FLE.H t0, fa0, fa1
Related
More in Zfh
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
FLE.H writes 1 to integer register rd if the half-precision value in rs1 is less than or equal to the value in rs2, and 0 otherwise. The result is 0 if either operand is a NaN. FLE.H is a signalling comparison: it sets the invalid-operation flag if either input is any NaN.
Operation
R[rd] = (F[rs1] <= F[rs2]) ? 1 : 0;