lfsx

Load Floating-Point Single Indexed X-form

lfsx FT,RA,RB

Loads a single-precision floating-point value from memory into a floating-point register.

Details

The lfsx instruction loads a single-precision floating-point value from the effective address formed by adding the contents of the base register (RB) and the index register (RA), and places it in the floating-point target register (FT).

Pseudocode Operation

FT <- Memory[EA]

Programming Note

The lfsx instruction is commonly used to load single-precision floating-point values from memory into a floating-point register. Ensure that the base and index registers contain valid addresses, and be aware of potential alignment issues that may affect performance or cause exceptions. This instruction operates at user privilege level.

Example

lfsx f1, r4, r5

Encoding

Binary Layout
011111
0
FT
6
RA
11
RB
16
10000
21
10111
26
Rc
 
Format X-form
Opcode 0x7C00042E
Extension Floating-Point
Registers Altered CR0, FPSCR

Operands

  • FT
    Target Floating-Point Register
  • RA
    Index General Purpose Register
  • RB
    Base General Purpose Register