xxspltw
VSX Vector Splat Word
xxspltw XT, XS, UIM
Replicates a word element from one vector register into all elements of another vector register.
Encoding
Binary Layout
60
XT
UIM
XS
164
Operands
-
XT
Target -
XS
Source -
UIM
Index -
XB
Source Vector Register
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
The contents of the specified word element UIM in VSR[XB] are replicated into each word element of VSR[XT].
Operation
if MSR.VSX=0 then VSX_Unavailable()
XT <- XB.word[UIM]
VSR[32×TX+T].word[0] ← XT
VSR[32×TX+T].word[1] ← XT
VSR[32×TX+T].word[2] ← XT
VSR[32×TX+T].word[3] ← XT
Programming Note
The xxspltw instruction is commonly used to replicate a word element from one vector register into all elements of another vector register. Ensure that the VSX (Vector Scalar Extensions) are enabled in the MSR register; otherwise, an exception will be raised. This instruction does not have specific alignment requirements and operates at user privilege level.