Scalar Video Instructions Instructions
6 PTX instructions in this category - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | PTX Version | Summary |
|---|---|---|---|
| vadd | // 32-bit scalar operation, with optional secondary operation vadd.dtype.atype.btype{.sat} d, a{.asel}, b{.bsel}; |
PTX ISA 2.0 | Perform scalar arithmetic operation with optional saturate, and optional secondary arithmetic operation or subword data merge. |
| vmad | // 32-bit scalar operation vmad.dtype.atype.btype{.sat}{.scale} d, {-}a{.asel}, {-}b{.bsel}, {-}c; |
PTX ISA 2.0 | Calculate (a*b) + c, with optional operand negates, plus one mode, and scaling. The source operands support optional negation with some restrictions. |
| vset | // 32-bit scalar operation, with optional secondary operation vset.atype.btype.cmp d, a{.asel}, b{.bsel}; |
PTX ISA 2.0 | Compare input values using specified comparison, with optional secondary arithmetic operation or subword data merge. |
| vshl | // 32-bit scalar operation, with optional secondary operation vshl.dtype.atype.u32{.sat}.mode d, a{.asel}, b{.bsel}; |
PTX ISA 2.0 | vshl Shift a left by unsigned amount in b with optional saturate, and optional secondary arithmetic operation or subword data merge. |
| vshr | // 32-bit scalar operation, with optional secondary operation vshr.dtype.atype.u32{.sat}.mode d, a{.asel}, b{.bsel}; |
PTX ISA 2.0 | vshl Shift a left by unsigned amount in b with optional saturate, and optional secondary arithmetic operation or subword data merge. |
| vsub | // 32-bit scalar operation, with optional secondary operation vsub.dtype.atype.btype{.sat} d, a{.asel}, b{.bsel}; |
PTX ISA 2.0 | Perform scalar arithmetic operation with optional saturate, and optional secondary arithmetic operation or subword data merge. |