xxleqv

VSX Vector Logical Equivalence

xxleqv XT, XA, XB

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].

Pseudocode Operation

VSR[32×TX+T] ← ¬(VSR[32×AX+A] ≡ VSR[32×BX+B])

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 0xF00001CA
Extension VSX

Operands

  • XT
    Target
  • XA
    Src A
  • XB
    Src B