lxv
Load VSX Vector
lxv XT, DQ(RA)
Loads a 128-bit vector from memory (VSX aligned offset).
Details
For lxv, the contents of the quadword in storage at address EA are placed into load_data. The order of bytes depends on the endianness (Big-Endian or Little-Endian). load_data is then placed into VSR[XT].
Pseudocode Operation
Programming Note
The lxv instruction loads a 16-byte vector from memory into a VSX register. Ensure the address is properly aligned to avoid alignment faults. Check that the appropriate privilege levels (MSR.VSX for VSX operations and MSR.VEC for vector operations) are enabled before executing this instruction.
Example
lxv vs1, 0(r4)
Encoding
Binary Layout
0
0
T
6
RA
11
DQ
16
TX
28
1
31
Operands
-
XT
Target -
DQ
Offset -
RA
Base -
disp
Displacement value