xxlnand

VSX Vector Logical NAND

xxlnand XT, XA, XB

vD = ~(vA & vB)

Details

The xxlnand instruction performs a logical NAND operation between the contents of two VSX registers, XA and XB, and stores the result in another VSX register, XT. The logical NAND operation is equivalent to the negation of the AND operation.

Pseudocode Operation

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

Programming Note

The xxlnand instruction is commonly used for bitwise logical operations in VSX registers. Ensure that the source and target registers are properly aligned to avoid alignment faults. This instruction operates at user privilege level, but care should be taken to handle potential exceptions if unaligned access occurs.

Example

xxlnand vs1, vs2, vs3

Encoding

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

Operands

  • XT
    Target
  • XA
    Src A
  • XB
    Src B