ldarx
Load Doubleword and Reserve Indexed
ldarx RT,RA,RB,EH
ldarx RT,RA,RB
ldarx RT,RA,RB
Loads a doubleword and creates a reservation. 64-bit version of lwarx.
Details
The ldarx instruction loads a doubleword from memory into register RT. It also reserves the memory location for use by a subsequent stdcx. or waitrsv instruction.
Pseudocode Operation
Programming Note
Load Doubleword And Reserve Indexed X-form serves as both a basic and an extended mnemonic. The Assembler will recognize a ldarx mnemonic with four operands as the basic form, and a ldarx mnemonic with three operands as the extended form.
Extended Mnemonics
| Extended Mnemonic | Equivalent Instruction |
|---|---|
| ldarx |
Example
ldarx r3, 0, r4
Encoding
Binary Layout
31
0
RT
6
RA
11
RB
16
84
21
/
Operands
-
RT
Target Register -
RA
Base Register -
RB
Index Register -
EH
Hint for subsequent store operation