PTX ISA v9.4

9.7.9.2. Logic and Shift Instructions: or

or

Biwise OR.

Syntax

ptx
or.type d, a, b;

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

Description

Compute the bit-wise or operation for the bits in a and b.

Semantics

ptx
d = a | b;

Notes

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

Allowed types include predicate registers.

PTX ISA Notes

Introduced in PTX ISA version 1.0.

Target ISA Notes

Supported on all target architectures.

Examples

ptx
or.b32  mask mask,0x00010001
or.pred  p,q,r;
esc
Type to search across all documentation