stxvx

Store VSX Vector Indexed X-form

stxvx xW,r0,rPW
stxvx xX,r0,rPX
stxvx xY,r0,rPY
stxvx xZ,r0,rPZ

Stores a vector element from the VSX register file to memory.

Details

Stores a 128-bit VSX vector element to memory using indexed addressing in X-form. The effective address is computed as (RA|0) + RB, and the vector is stored with element size determined by the instruction form. This VSX instruction does not affect condition registers or status flags.

Pseudocode Operation

EA ← (RA|0) + RB
[EA] ← VSR[XS]

Programming Note

The stxvx instruction is used for storing VSX vectors to memory. The index value in XS is multiplied by 16 bytes.

Example

stxvx xw, r0, rpw

Encoding

Binary Layout
101100
0
XS
1
00000
6
rA
11
rB
16
00000
00000
00000
 
Format X-form
Opcode 0x7C000318
Extension VSX
Registers Altered MSR

Operands

  • XS
    VSX Register Index
  • RA
    Source General Purpose Register for Base Address
  • RB
    Source General Purpose Register for Offset
  • xW
    VSX Register containing the vector to store
  • r0
    General Purpose Register (typically used as zero register)
  • rPW
    Base address General Purpose Register for W
  • rPX
    Base address General Purpose Register for X
  • rPY
    Base address General Purpose Register for Y
  • rPZ
    Base address General Purpose Register for Z