ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

DS_ADD_GS_REG_RTN

T1 amd-gpu alu insn
AMD GPU DS_ADD_GS_REG_RTN (ENC_DS)
SourceAMD Official Machine-Readable GPU ISA XMLs (RDNA & CDNA) (amd_gpu_isa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRDNA3, RDNA3_5
AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
License & VersionAMD GPUOpen / MIT (isa_spec_manager)
2026-official
Upstreamhttps://gpuopen.com/machine-readable-isa/
Privilegeuser
ExtensionsRDNA3, RDNA3_5, VMEM

Summary

Perform an atomic add to data in specific registers embedded in GDS rather than operating on GDS memory directly. This instruction returns the pre-op value. This instruction is only used by the GS stage and is used to facilitate streamout.

Syntax / Encoding

DS_ADD_GS_REG_RTN VDST, DATA0 | ENC_DS op=122 [RDNA3,RDNA3_5]

Binary Encodings (1)

WidthFormatBit PatternMask / Match
64ENC_DSxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx11011001111010xxxxxxxxxxxxxxxxxx0x00000000fffc0000 / 0x00000000d9e80000

Operands

NameDescription
VDST
DATA0