stxvw4x

Store VSX Vector Word*4 Indexed

stxvw4x XS, RA, RB

Stores four words from a vector (unaligned).

Details

The stxvw4x instruction stores four words from the VSX vector register VSR[32×SX+S] into consecutive memory locations starting at address EA, which is computed as the sum of GPR[RA] and GPR[RB].

Pseudocode Operation

if MSR.VSX=0 then
    VSX_Unavailable()
EA ←((RA=0) ? 0 : GPR[RA]) + GPR[RB]
for i from 0 to 3 do
    store_data ← VSR[32×SX+S].word[i]
    MEM(EA+4×i,4) ← store_data

Programming Note

stxvd2x, stxvw4x, stxvh8x, stxvb16x, and stxvx exhibit identical behavior in Big-Endian mode.

Example

stxvw4x vs1, r4, r5

Encoding

Binary Layout
18
0
S
6
RA
11
RB
16
0
21
0
22
0
23
0
24
0
25
0
26
0
27
0
28
0
29
0
30
0
31
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
 
Format XX1-form
Opcode 0x7C0003CC
Extension VSX
Registers Altered MSR

Operands

  • XS
    Source
  • RA
    Base
  • RB
    Index