stxsdx

Store VSX Scalar Doubleword Indexed X-form

stxsdx XS,RA,RB

Stores a doubleword from a VSX scalar register to memory.

Details

The instruction stores the contents of the specified doubleword element of a VSX scalar register into memory at an address calculated from two general-purpose registers.

Pseudocode Operation

if MSR.VSX=0 then
    VSX_Unavailable()
EA ←((RA=0) ? 0 : GPR[RA]) + GPR[RB]
MEM(EA,8)    ←VSR[XS].dword[0]

Programming Note

The stxsdx instruction stores a doubleword from a VSX scalar register into memory. Ensure the VSX facility is enabled by checking and setting the MSR.VSX bit. The effective address (EA) is calculated by adding the contents of two general-purpose registers, RA and RB. This instruction requires 8-byte alignment for the memory address to avoid exceptions.

Example

stxsdx vs1, r4, r5

Encoding

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

Operands

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