xxsplti32dx
VSX Vector Splat Immediate 32-bit Double Index
xxsplti32dx XT, IX, IMM
Splats a 32-bit immediate into a doubleword index.
Encoding
Binary Layout
60
0:5
XT
6:10
IX
11:20
IMM
21:63
Operands
-
XT
Target -
IX
Index -
IMM
Value
Example
xxsplti32dx vs1, 0, 1
Related
More in VSX
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Splats a sign-extended 32-bit immediate value into the doubleword at index IX within VSR XT. IX selects either the upper (0) or lower (1) doubleword; the 32-bit immediate is sign-extended to 64 bits and replicated. This is a VSX instruction that does not update condition flags.
Operation
imm64 ← SignExtend(IMM, 32)
if IX = 0 then
XT[0:63] ← imm64
else
XT[64:127] ← imm64
Programming Note
Use xxsplti32dx to initialize a VSX vector with a repeated 32-bit immediate value. Ensure the immediate value fits within 32 bits; otherwise, it will be truncated. This instruction is available in all privilege levels and does not raise exceptions for valid inputs.