ds_gws_sema_v GPU Native ISA AMD Vector
LDS / Data Share
GDS Only: The GWS resource indicated processes this opcode by updating the counter and labeling the resource as a semaphore.
Encoding
The ENC_DS layout from AMD's machine-readable ISA specification (AMD CDNA 3). Opcode 154 in OP rebuilds 0x00000000D9340000, an identifier AMD lists for this encoding. Not the same in every generation: AMD CDNA 1 (field layout), AMD RDNA 3.5 (opcode 26, field layout), AMD RDNA 3 (opcode 26, field layout), AMD RDNA 2 (opcode 26, field layout), AMD RDNA 1 (opcode 26, field layout). The same in AMD CDNA 2.
Operands
-
1: modifier
Assembler modifier or optional field rather than a register. Written gds in the assembler example.
Register classes read from the LLVM assembler example on this page. No source this site uses names these operands, so no names are given.
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx1100 | ✅ Supported |
Related
More in LDS / Data Share
Reference
Semantics
Example
ds_gws_sema_v gdsA real instruction accepted by the LLVM assembler, taken verbatim from LLVM's own AMDGPU MC test suite. Not from an AMD document, and not authored here.
Sources
- User Guide for AMDGPU Backend ↗ - LLVM Project
-
"AMD Instinct MI300" Instruction Set Architecture: Reference Guide ↗
- Advanced Micro Devices, Inc.
Reference Guide, page 453. - LLVM MC assembler tests for AMDGPU ↗ - LLVM Project
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.