xxleqv
VSX Vector Logical Equivalence
vD = ~(vA ^ vB) (XNOR)
Details
The xxleqv instruction performs a vector logical equivalence operation between the contents of VSR[XA] and VSR[XB]. It exclusive-ORs the contents of these registers, then complements the result, placing it into VSR[XT].
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