Comparison and Selection Instructions Instructions
4 PTX instructions in this category - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | PTX Version | Summary |
|---|---|---|---|
| selp | selp.type d, a, b, p; | PTX ISA 1.0 | Select between two operands based on a predicate, without branching. |
| set | set.CmpOp.dtype.stype d, a, b; | PTX ISA 1.0 | Compare two operands and write a numeric (not predicate) 0/1 or all-ones/all-zeros result. |
| setp | setp.CmpOp.type p, a, b; | PTX ISA 1.0 | Compare two operands and write the boolean result to a predicate register. |
| slct | slct.dtype.s32 d, a, b, c; | PTX ISA 1.0 | Conditional selection. |