x86 Assembly Language Reference Manual

Logical Instructions

The logical instructions perform basic logical operations on their operands.

Table 3–4 Logical Instructions

Solaris Mnemonic 

Intel/AMD Mnemonic 

Description 

Notes 

and{bwlq}

AND

bitwise logical AND 

andq valid only under -xarch=amd64

not{bwlq}

NOT

bitwise logical NOT 

notq valid only under -xarch=amd64

or{bwlq}

OR

bitwise logical OR 

orq valid only under -xarch=amd64

xor{bwlq}

XOR

bitwise logical exclusive OR 

xorq valid only under -xarch=amd64