xxlxor

VSX Vector Logical XOR

xxlxor XT, XA, XB

Bitwise XOR.

Details

Performs a bitwise logical XOR of the contents of XA and XB, storing the result in XT. This is a VSX instruction that does not affect condition or status flags.

Pseudocode Operation

XT ← XA XOR 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 0xF00004D0
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target
  • XA
    Src A
  • XB
    Src B