vxor

Vector XOR

vxor vD, vA, vB

Bitwise XOR of two 128-bit vectors.

Details

The Vector XOR instruction performs a bitwise XOR operation between the contents of two vector registers (VSR[VRA+32] and VSR[VRB+32]) and places the result into another vector register (VSR[VRT+32]).

Pseudocode Operation

if MSR.VEC=0 then Vector_Unavailable()
VSR[VRT+32] ←VSR[VRA+32] ⊕VSR[VRB+32]

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