stxvh8x

Store VSX Vector Halfword*8 Indexed

stxvh8x XS,RA,RB

Stores a vector of 8 halfword elements from VSR[X] into memory using indexed addressing.

Details

The stxvh8x instruction stores a vector of 8 halfword elements from the specified VSX register (VSR[X]) into memory. The effective address is calculated based on the contents of GPR[RA] and GPR[RB].

Pseudocode Operation

if SX=0 & MSR.VSX=0 then
    VSX_Unavailable()
if SX=1 & MSR.VEC=0 then
    Vector_Unavailable()
EA ←((RA=0) ? 0 : GPR[RA]) + GPR[RB]
do i = 0 to 7
    MEM(EA+2×i,2) ←VSR[32×SX+S].hword[i]

Programming Note

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

Example

stxvh8x vs1, r4, r5

Encoding

Binary Layout
0
0
S
1
RA
6
RB
11
SX
21
 
Format X-form
Opcode 0x7C000758
Extension VSX
Registers Altered MSR

Operands

  • XS
    VSX Register Index
  • RA
    Source General Purpose Register (Base Address)
  • RB
    Source General Purpose Register (Index)