xxspltib

VSX Vector Splat Immediate Byte

xxspltib XT, IMM

Copies an immediate byte value into each byte element of a vector register.

Details

The xxspltib instruction copies the immediate byte value IMM8 into each byte element of the vector register VSR[XT].

Pseudocode Operation

if TX=0 & MSR.VSX=0 then VSX_Unavailable()
if TX=1 & MSR.VEC=0 then Vector_Unavailable()
do i = 0 to 15
    VSR[32×TX+T].byte[i] ←UIM8
end

Programming Note

The xxspltib instruction is used to fill a VSX vector register with an immediate byte value. Ensure that the appropriate privilege level (VSX or Vector) is enabled in the MSR register, otherwise, it will raise an exception. This instruction is useful for initializing vectors with a constant value.

Example

xxspltib vs1, 1

Encoding

Binary Layout
60
0
XT
6
0
11
IMM
14
360
 
Format X-form
Opcode 0xF0000168
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target
  • IMM
    Value
  • IMM8
    Immediate Byte Value