vxor

Vector XOR

vxor vD, vA, vB

Bitwise XOR of two 128-bit vectors.

Encoding

Binary Layout
4
0:5
vD
6:10
vA
11:15
vB
16:20
1220
21:31
 
Format VX-form
Opcode 0x100004C4
Extension VMX (AltiVec)

Operands

  • vD
    Target
  • vA
    Src A
  • vB
    Src B

Example

vxor vd, va, vb

Registers Altered

MSR

Related

More in VMX (AltiVec)

Reference

Description

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.

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.