xxleqv
VSX Vector Logical Equivalence
vD = ~(vA ^ vB) (XNOR)
Details
Performs a bitwise logical equivalence (XNOR) operation on XA and XB, storing the result in XT. The operation is XT ← ~(XA ^ XB) on all 128 bits, producing all 1-bits where XA and XB have the same bit value. No condition register or status field modifications occur.
Pseudocode Operation
XT ← ~(XA ^ XB)
Programming Note
The xxleqv instruction is used to perform a vector logical equivalence operation between two VSX registers. It's useful for comparing vectors and determining where elements are not equal, as it effectively computes the bitwise NOT of the equality result. Ensure that the input registers (XA and XB) are properly aligned and contain valid data to avoid unexpected results. This instruction operates at the user privilege level and does not generate exceptions under normal conditions.
Example
Encoding
Operands
-
XT
Target -
XA
Src A -
XB
Src B