PTX ISA v9.4

9.7.9.4. Logic and Shift Instructions: not

not

Bitwise negation; one's complement.

Syntax

ptx
not.type d, a;

.type = { .pred, .b16, .b32, .b64 };

Description

Invert the bits in a.

Semantics

ptx
d = ~a;

Notes

The size of the operands must match, but not necessarily the type.

Allowed types include predicates.

PTX ISA Notes

Introduced in PTX ISA version 1.0.

Target ISA Notes

Supported on all target architectures.

Examples

ptx
not.b32  mask,mask;
not.pred  p,q;
esc
Type to search across all documentation