vspltw
Vector Splat Word
Copies a single word element from the source vector into all four word elements of the destination.
Details
The vspltw instruction takes the contents of a specified word element in VSR[VRB+32] and replicates it into each word element of VSR[VRT+32].
Pseudocode Operation
Programming Note
The vspltw instruction is used to replicate a selected word from one vector register into all words of another vector register. Ensure that the Vector Facility (MSR.VEC) is enabled; otherwise, a Vector_Unavailable exception will be raised. The index 'b' is derived by concatenating the UIM field with four zeros, and it specifies which 32-bit word to replicate. This instruction operates at the user privilege level.
Example
Encoding
Operands
-
vD
Target -
vB
Source -
UIM
Element Index (0-3) -
VRT
Target Vector Register -
VRB
Source Vector Register