ldx (Load Doubleword Indexed) instruction

Purpose

Loads a doubleword from a specified memory location into a general purpose register (GPR).

Syntax

Bits Value
0 - 5 31
6 - 10 D
11 - 15 A
16 - 20 B
21 - 30 21
31 0
PowerPC® 
ldx RT RA, RB

Description

The ldx instruction loads a doubleword from the specified memory location that is referenced by the effective address (EA) into the GPR RT.

If GRP RA is not 0, the effective address (EA) is the sum of the contents of GRPs, RA and RB. Otherwise, the EA is equal to the contents of RB.

Parameters

Item Description
RT Specifies the target GPR where the result of the operation is stored.
RA Specifies the source GPR for the EA calculation.
RB Specifies the source GPR for the EA calculation.

Implementation

This instruction is defined only for 64-bit implementations. Using it on a 32-bit implementation calls the system illegal instruction error handler.