xxspltiw
VSX Vector Splat Immediate Word
Spatially duplicates a 32-bit immediate into all 4 words of the target.
Details
Duplicates a 32-bit immediate value into all four 32-bit word elements of VSR[XT]. This is a VSX vector splat immediate instruction that fills the entire 128-bit register with copies of the 32-bit immediate. No floating-point status updates occur.
Pseudocode Operation
Programming Note
The xxspltiw instruction is commonly used to initialize a VSX vector with a repeated immediate word value. Ensure that the 'imm' field is within the valid range of a 32-bit signed integer to avoid unexpected behavior. This instruction operates at user privilege level and does not generate exceptions under normal circumstances.
Example
Encoding
Operands
-
XT
Target -
IMM
32-bit Value -
VT
Target Vector Register -
imm
Immediate Word Value