xxlandc
VSX Vector Logical AND with Complement
vD = vA & ~vB
Details
Performs a bitwise logical AND operation between XT and the bitwise complement of XB, storing the result in XT. The operation is XT ← XT & ~XB on all 128 bits. No condition register or status field modifications occur.
Pseudocode Operation
XT ← XA & ~XB
Programming Note
The xxlandc instruction is used for performing a bitwise logical AND operation between the contents of two vector registers, where one register's bits are complemented before the operation. Ensure that the VSX (Vector Scalar Extensions) facility is enabled in the MSR (Machine State Register) to avoid an exception. This instruction operates on 128-bit vectors and requires proper alignment of the input and output registers.
Example
Encoding
Operands
-
XT
Target -
XA
Src A -
XB
Src B