lvebx

Load Vector Element Byte Indexed

lvebx VRT,RA,RB

Loads a byte from memory into a vector register element.

Details

Loads a single byte from memory at address RA+RB and stores it in the rightmost byte of a vector register element in VRT, with zero padding in remaining bytes. 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]
VRT ← (0x00000000000000 || [EA & ~0x3])
VRT[byte_index] ← [EA]

Programming Note

The Load Vector Element instructions load the specified element into the same location in the target register as the location into which it would be loaded using the Load Vector instruction.

Example

lvebx v1, r4, r5

Encoding

Binary Layout
0
0
VRT
6
RA
11
RB
16
7
21
 
Format X-form
Opcode 0x7C00000E
Extension VMX (AltiVec)
Registers Altered MSR

Operands

  • VRT
    Target Vector Register
  • RA
    Source General Purpose Register
  • RB
    Index General Purpose Register