Loads a doubleword of data from a specified location in memory into a floating-point register.
lfdx | FRT,RA,RB |
The lfdx instruction loads a doubleword in storage from a specified location in memory addressed by the effective address (EA) into the target floating-point register (FPR) FRT.
If RA is not 0, the EA is the sum of the contents of general-purpose register (GPR) RA and GPR RB. If RA is 0, then the EA is the contents of GPR RB.
The lfdx instruction has one syntax form and does not affect the Floating-Point Status and Control Register or Condition Register Field 0.
FRT | Specifies target floating-point register where data is stored. |
RA | Specifies source general-purpose register for EA calculation. |
RB | Specifies source general-purpose register for EA calculation. |
The following code loads a doubleword from memory into FPR 6:
storage: .double 0x1 . . # Assume GPR 4 contains the storage address. lfdx 6,0,4 # FPR 6 now contains 0x3FF0 0000 0000 0000.
Floating-Point Load and Store Instructions.