xxleqv

VSX Vector Logical Equivalence

xxleqv XT, XA, XB

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

xxleqv vs1, vs2, vs3

Encoding

Binary Layout
60
0
XT
6
XA
11
XB
16
458
21
 
Format XX3-form
Opcode 0xF00005D0
Extension VSX

Operands

  • XT
    Target
  • XA
    Src A
  • XB
    Src B