s_add_u32 GPU Native ISA AMD Scalar

S ADD U32 Scalar Arithmetic

s_add_u32 SDST, S0, S1

Add two 32-bit unsigned scalar operands, wavefront-uniform.

Encoding

Verified bit-level encoding data is not yet available for this instruction. The instruction-format classification below (SOP2) is well-documented and stable; exact per-target opcode/field bit positions have not yet been imported from a verified source.
Format SOP2
Width 32 bits
Execution Unit Scalar ALU
Register Classes SGPR

Operands

  • SDST
    Destination SGPR
  • S0
    First source SGPR/constant
  • S1
    Second source SGPR/constant

GFX Target Compatibility

TargetSupport
gfx942✅ Supported
gfx1100✅ Supported

Related PTX Concepts

Integer Addition ↗
equivalent with restrictions
add (PTX)

Reference

AMDGPU / GFX ISA

Semantics

SDST = S0.u32 + S1.u32; SCC = carry-out.

Sources