lxvwsx
Load VSX Vector Word and Splat Indexed
lxvwsx XT, RA, RB
Loads a 32-bit word and replicates it across the vector.
Details
The lxvwsx instruction loads a word from memory into the VSX vector register, then splats this word across all elements of the vector.
Pseudocode Operation
Programming Note
The lxvwsx instruction is commonly used for loading a word from memory and replicating it across all elements of a VSX vector register. Ensure that the appropriate privilege levels (MSR.VSX or MSR.VEC) are enabled to avoid exceptions. The instruction requires 4-byte alignment for the memory address; unaligned accesses may result in performance penalties or exceptions depending on the system configuration.
Example
lxvwsx vs1, r4, r5
Encoding
Binary Layout
31
0
XT
6
RA
11
RB
16
364
21
Operands
-
XT
Target -
RA
Base -
RB
Index