ldat
Load Doubleword Atomic
Atomically loads a doubleword from memory.
Details
The ldat instruction performs an atomic load of a doubleword from memory. The effective address is computed as the sum of the contents of general-purpose register RA and general-purpose register RB. The doubleword at the effective address is atomically loaded into register RT. This instruction is part of the Atomic Memory Operations (AMO) category, introduced in PowerISA v3.0.
Programming Note
Places a reservation on the cache line containing the effective address. The subsequent store-conditional (stwcx./stdcx. etc.) will fail if the reservation has been lost due to an intervening store from any processor or an exception. Always check the EQ bit in CR0 after the store-conditional.
Example
Encoding
Operands
-
RT
Target General Purpose Register -
RA
Base Address General Purpose Register -
RB
Offset General Purpose Register