lvx
Load Vector Indexed
Loads a 128-bit vector from memory into a Vector Register. Address must be 16-byte aligned (bits 60-63 of effective address are ignored).
Details
Load Vector Indexed loads a 128-bit vector from memory at the address computed from RA and RB, placing the result in VRT. The effective address must be 16-byte aligned; the low 4 bits of the computed address are ignored. This is a VMX/AltiVec instruction requiring the Vector facility to be enabled.
Pseudocode Operation
EA ← (RA + RB) & 0xFFF...FF0
VRT ← [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
// Load aligned vector.
Encoding
Operands
-
vD
Target Vector Register -
RA
Base Register -
RB
Index Register -
Vt
Target Vector Register -
Rb
Base General Purpose Register -
VRT
Target Vector Register