plq
Prefixed Load Quadword
Loads 128 bits into two GPRs using a 34-bit offset.
Details
Prefixed load of 128 bits from memory into two consecutive general-purpose registers (RT and RT+1) using a 34-bit signed offset. The effective address is computed as RA + D (if R=0) or the prefixed address. This is a prefixed instruction requiring the Prefixed extension; no condition register or status flags are affected.
Pseudocode Operation
if RA = 0 then
EA ← D
else
EA ← (RA) + D
RT ← [EA]
RT+1 ← [EA+8]
Programming Note
The plq instruction is used to load a quadword from memory into an even-odd pair of GPRs. Ensure that the effective address (EA) is properly aligned to 16 bytes for optimal performance and to avoid alignment exceptions. This instruction operates at the problem state privilege level, so it cannot be executed in supervisor or hypervisor states.
Example
Encoding
Operands
-
RTp
Target Pair -
D
Offset -
RA
Base -
R
PC-Rel