FLI.S

Float Load Immediate (Single)

FLI.S rd, rs1

Loads one of 32 predefined single-precision constants into a floating-point register.

Encoding

Binary Layout
111100000001
31:20
rs1
19:15
000
14:12
rd
11:7
1010011
6:0
 
Format R-Type
Opcode 0xF0100053
Extension Zfa

Operands

  • rd
    Destination floating-point register
  • rs1
    Constant index (0-31), written as the value

Example

FLI.S ft0, 1.0

Related

More in Zfa

Description

Loads one of 32 single-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.S ft0, 1.0.

Operation

F[rd] = FloatTable[rs1];