xxlxor

VSX Vector Logical XOR

xxlxor XT, XA, XB

Bitwise XOR.

Details

The VSX Vector Logical XOR instruction performs a bitwise exclusive OR operation between the contents of two vector scalar registers (VSR) and stores the result in another vector scalar register. If the VSX facility is not available, it raises an exception.

Pseudocode Operation

if MSR.VSX=0 then VSX_Unavailable()
Let XT be the value 32×TX + T.
Let XA be the value 32×AX + A.
Let XB be the value 32×BX + B.
VSR[XT] ← VSR[XA] ⊕ VSR[XB]

Programming Note

The xxlxor instruction requires the VSX facility to be enabled; otherwise, it will raise an exception. Ensure that the VSX bit in the MSR register is set before using this instruction. The operation is performed on 128-bit vector registers, so ensure proper alignment and that the input registers contain valid data for accurate results.

Example

xxlxor vs1, vs2, vs3

Encoding

Binary Layout
60
0
XT
6
XA
11
XB
16
456
21
 
Format XX3-form
Opcode 0xF00001C8
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target
  • XA
    Src A
  • XB
    Src B