Scalar Arithmetic Instructions
225 AMDGPU instructions in this category - showing 25 per page, page 3 of 3 - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | Format | Summary |
|---|---|---|---|
| s_sub_nc_u64 | s_sub_nc_u64 | SOP2 | Subtract the second unsigned 64-bit integer input from the first input and store the result into a scalar register. |
| s_sub_u32 | s_sub_u32 SDST, S0, S1 | SOP2 | Subtract two 32-bit unsigned scalar operands, wavefront-uniform. |
| s_sub_u64 | s_sub_u64 | SOP2 | AMDGPU SOP2 scalar instruction operating on u64 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) |
| s_subb_u32 | s_subb_u32 | SOP2 | Subtract the second unsigned 32-bit integer input from the first input, subtract the carry-in bit, store the result into a scalar register and store… |
| s_subvector_loop_begin | s_subvector_loop_begin | SOPK | Begin execution of a subvector block of code. |
| s_subvector_loop_end | s_subvector_loop_end | SOPK | End execution of a subvector block of code. |
| s_swap_pc_i64 | s_swap_pc_i64 | SOP1 | AMDGPU SOP1 scalar instruction operating on i64 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) |
| s_swappc_b64 | s_swappc_b64 | SOP1 | Store the address of the next instruction to a scalar register and then jump to an address specified in the scalar input. |
| s_trunc_f16 | s_trunc_f16 | SOP1 | Compute the integer part of a half-precision float input using round toward zero semantics and store the result in floating point format into a… |
| s_trunc_f32 | s_trunc_f32 | SOP1 | Compute the integer part of a single-precision float input using round toward zero semantics and store the result in floating point format into a… |
| s_waitcnt_expcnt | s_waitcnt_expcnt | SOPK | Wait for the EXPCNT counter to be at or below the specified level. The EXPCNT counter tracks the number of outstanding export events. |
| s_waitcnt_lgkmcnt | s_waitcnt_lgkmcnt | SOPK | Wait for the LGKMCNT counter to be at or below the specified level. |
| s_waitcnt_vmcnt | s_waitcnt_vmcnt | SOPK | Wait for the VMCNT counter to be at or below the specified level. |
| s_waitcnt_vscnt | s_waitcnt_vscnt | SOPK | Wait for the VSCNT counter to be at or below the specified level. |
| s_wakeup_barrier | s_wakeup_barrier | SOP1 | AMDGPU SOP1 scalar instruction. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) |
| s_wqm_b32 | s_wqm_b32 | SOP1 | Given an active pixel mask in a scalar input, calculate whole quad mode mask for that input, store the result into a scalar register and set SCC iff… |
| s_wqm_b64 | s_wqm_b64 | SOP1 | Given an active pixel mask in a scalar input, calculate whole quad mode mask for that input, store the result into a scalar register and set SCC iff… |
| s_xnor_b32 | s_xnor_b32 | SOP2 | Calculate bitwise XNOR on two scalar inputs, store the result into a scalar register and set SCC if the result is nonzero. |
| s_xnor_b64 | s_xnor_b64 | SOP2 | Calculate bitwise XNOR on two scalar inputs, store the result into a scalar register and set SCC if the result is nonzero. |
| s_xnor_saveexec_b32 | s_xnor_saveexec_b32 | SOP1 | Calculate bitwise XNOR on the scalar input and the EXEC mask, store the calculated result into the EXEC mask, set SCC iff the calculated result is… |
| s_xnor_saveexec_b64 | s_xnor_saveexec_b64 | SOP1 | Calculate bitwise XNOR on the scalar input and the EXEC mask, store the calculated result into the EXEC mask, set SCC iff the calculated result is… |
| s_xor_b32 | s_xor_b32 | SOP2 | Calculate bitwise XOR on two scalar inputs, store the result into a scalar register and set SCC iff the result is nonzero. |
| s_xor_b64 | s_xor_b64 | SOP2 | Calculate bitwise XOR on two scalar inputs, store the result into a scalar register and set SCC iff the result is nonzero. |
| s_xor_saveexec_b32 | s_xor_saveexec_b32 | SOP1 | Calculate bitwise XOR on the scalar input and the EXEC mask, store the calculated result into the EXEC mask, set SCC iff the calculated result is… |
| s_xor_saveexec_b64 | s_xor_saveexec_b64 | SOP1 | Calculate bitwise XOR on the scalar input and the EXEC mask, store the calculated result into the EXEC mask, set SCC iff the calculated result is… |