FLI.H
Float Load Immediate (Half)
FLI.H rd, rs1
Loads one of 32 predefined half-precision constants into a floating-point register.
Encoding
Binary Layout
111101000001
31:20
rs1
19:15
000
14:12
rd
11:7
1010011
6:0
Operands
-
rd
Destination floating-point register -
rs1
Constant index (0-31), written as the value
Example
FLI.H ft0, 1.0
Related
More in Zfa
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Loads one of 32 half-precision floating-point constants, selected by the 5-bit rs1 field (an index, not a register), into floating-point register rd. The table contains -1.0, the minimum positive normal number, 2^-16, 2^-15, 2^-8, 2^-7, 0.0625, 0.125, fractions from 0.25 to 0.875, 1.0 to 1.75, 2.0, 2.5, 3, 4, 8, 16, 2^7, 2^8, 2^15, 2^16, +infinity and the canonical NaN. It sets no exception flags. The assembler also accepts the value directly, for example FLI.H ft0, 1.0.
Operation
F[rd] = HalfTable[rs1];