vxor

Vector XOR

vxor vD, vA, vB

Bitwise XOR of two 128-bit vectors.

Details

Performs a bitwise XOR (exclusive OR) of two 128-bit vector registers and stores the result in a third vector register. Each bit position of the result is set if the corresponding bits in the two input vectors differ. No status flags are affected.

Pseudocode Operation

vD ← vA ^ vB

Programming Note

The vxor instruction is used to perform a bitwise XOR operation on two vector registers and store the result in another. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. This instruction operates on 128-bit vector registers.

Example

vxor vd, va, vb

Encoding

Binary Layout
4
0
vD
6
vA
11
vB
16
1220
21
 
Format VX-form
Opcode 0x100004C4
Extension VMX (AltiVec)
Registers Altered MSR

Operands

  • vD
    Target
  • vA
    Src A
  • vB
    Src B