pstq
Prefixed Store Quadword
Stores 128 bits from two GPRs using a 34-bit offset.
Details
Prefixed store of 128 bits from two consecutive general-purpose registers (RS and RS+1) to memory 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
[EA] ← RS
[EA+8] ← RS+1
Programming Note
The pstq instruction is used to store a quadword from registers RSp and RSp+1 into memory. It calculates the effective address based on the base register RA, displacement, and current instruction address CIA, depending on the prefix field R. Ensure proper alignment for optimal performance and be aware of byte ordering differences between Big-Endian and Little-Endian systems.
Example
Encoding
Operands
-
RSp
Src Pair -
D
Offset -
RA
Base -
R
PC-Rel