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]).
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
Operands
-
vD
Target -
vA
Src A -
vB
Src B