stvehx
Store Vector Element Halfword Indexed X-form
stvehx VRS,RA,RB
Stores a halfword element from a vector register to memory.
Details
The stvehx instruction stores a halfword element from the vector register VRS+32 into memory at an address calculated from registers RA and RB.
Pseudocode Operation
Programming Note
Unless bits 60:62 of the address are known to match the halfword offset of the subject halfword element in VSR[VRS+32], software should use Vector Splat to splat the subject halfword element before performing the store.
Example
stvehx v1, r4, r5
Encoding
Binary Layout
011111
0
VRS
6
RA
11
RB
16
00101
21
00111
26
Rc
31
Operands
-
VRS
Vector Register -
RA
Source General Purpose Register -
RB
Source General Purpose Register