stvebx

Store Vector Element Byte Indexed

stvebx VRS,RA,RB

Stores a byte element from a vector register into memory.

Details

Stores the byte element from vector register VRS at the position determined by the effective address RA+RB into memory. This instruction is part of the VMX (AltiVec) category and does not update condition registers.

Pseudocode Operation

EA ← (RA = 0 ? 0 : GPR(RA)) + GPR(RB)
byte_index ← EA[28:31]
[EA] ← VRS[byte_index]

Programming Note

Unless bits 60:63 of the address are known to match the byte offset of the subject byte element in VSR[VRS+32], software should use Vector Splat to splat the subject byte element before performing the store.

Example

stvebx v1, r4, r5

Encoding

Binary Layout
0
0
VRS
6
RA
11
RB
16
 
Format X-form
Opcode 0x7C00010E
Extension VMX (AltiVec)
Registers Altered MSR

Operands

  • VRS
    Vector Register
  • RA
    Source General Purpose Register
  • RB
    Source General Purpose Register