xxlnand
VSX Vector Logical NAND
xxlnand XT, XA, XB
vD = ~(vA & vB)
Encoding
Binary Layout
60
0:5
XT
6:10
XA
11:15
XB
16:20
442
21:31
Operands
-
XT
Target -
XA
Src A -
XB
Src B
Example
xxlnand vs1, vs2, vs3
Related
More in VSX
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Performs a bitwise logical NAND operation on XA and XB, storing the result in XT. The operation is XT ← ~(XA & XB) on all 128 bits. No condition register or status field modifications occur.
Operation
XT ← ~(XA & XB)
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.