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.
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
Operands
-
XT
Target -
XA
Src A -
XB
Src B