vspltisw
Vector Splat Immediate Signed Word
Splat a signed immediate value into all elements of a vector register.
Details
The vspltisw instruction splats an immediate signed word value across all elements of a vector register. It sign-extends the 16-bit SIM field to 32 bits and replicates this value in each of the four word elements of the target vector register.
Pseudocode Operation
Programming Note
The vspltisw instruction is commonly used to initialize a vector register with a repeated signed word value. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, it will raise an exception. The immediate value is sign-extended from 16 bits to 32 bits and replicated across all four elements of the target vector register.
Example
Encoding
Operands
-
vD
Target -
SIM
Immediate -
VRT
Target Vector Register -
SI16
Signed Immediate Value (16-bit)