pstxvp

Prefixed Store VSX Vector Pair

pstxvp XS, D(RA), R

Stores a 256-bit vector pair with 34-bit offset.

Details

The pstxvp instruction stores a VSX vector pair from the VSR registers to memory. The effective address (EA) is calculated based on the prefix and suffix fields, and the data is stored in either big-endian or little-endian byte order depending on the system configuration.

Pseudocode Operation

if R=1 then
    EA ← PC + sign-extend(d0||d1)
else
    EA ←((RA=0) ? 0 : GPR[RA]) + disp
store_data ← VSR[XSp].value || VSR[XSp+1].value
MEM(EA,32) ← store_data

Programming Note

The pstxvp instruction is used to store a VSX vector pair from the VSR registers to memory. It supports both prefixed and non-prefixed addressing modes. Ensure that the destination address is properly aligned for optimal performance. This instruction operates at privilege level 0.

Example

pstxvp vs1, 0(r4), 0

Encoding

Binary Layout
1
0
2
6
R
8
0
9
D0
14
62
32
XS
38
RA
43
D1
48
 
Format 8LS:D-form
Opcode 0x06000000
Extension Prefixed
Registers Altered PC

Operands

  • XS
    Source
  • D
    Offset
  • RA
    Base
  • R
    PC-Rel