stxvrhx
Store VSX Vector Rightmost Halfword Indexed X-form
Stores the rightmost halfword of a VSX vector element to memory.
Details
Stores the rightmost halfword (least significant 16 bits) of the first double-precision element in a VSX vector to memory using indexed addressing. The effective address is computed as (RA|0) + RB. This VSX instruction does not affect condition registers or status flags.
Pseudocode Operation
EA ← (RA|0) + RB
[EA:EA+1] ← VSR[XS][48:63]
Programming Note
The stxvrhx instruction stores the rightmost halfword of a VSX vector element into memory. Ensure that the VSX facility is enabled (MSR.VSX=1); otherwise, a VSX_Unavailable exception will occur. The effective address is calculated by adding GPR[RA] and GPR[RB], so ensure these registers contain valid addresses. This instruction operates at user privilege level.
Example
Encoding
Operands
-
XS
VSX Vector Register -
RA
General Purpose Register (Base Address) -
RB
General Purpose Register (Index)