FLI.S
Float Load Immediate (Single)
FLI.S rd, rs1
Loads a common floating-point constant (e.g., 1.0, 0.5, PI) into a register from a small table.
Encoding
Binary Layout
111100000001
31:20
rs1
19:15
000
14:12
rd
11:7
1010011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Constant Index
Example
FLI.S t0, a0
Related
More in Zfa
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Loads a single-precision (32-bit) floating-point constant from a predefined lookup table (indexed by rs1) into fd. Provides common constants such as -1, 0, 1, 2, ∞, and others without a memory access.
Operation
F[rd] = FloatTable[rs1];