s_load_dword GPU Native ISA AMD Scalar
Scalar Memory
Load one 32-bit dword from memory into a scalar register, wavefront-uniform.
Also written as
s_load_b32.
AMD's machine-readable ISA specification lists this name for the same instruction.
Encoding
The ENC_SMEM layout from AMD's machine-readable ISA specification (AMD CDNA 4). Opcode 0 in OP rebuilds 0x00000000C0000000, an identifier AMD lists for this encoding. Bits marked unassigned have no field in the specification. Not the same in every generation: AMD RDNA 2 (field layout), AMD RDNA 1 (field layout). The same in AMD CDNA 3, AMD CDNA 2, AMD CDNA 1.
Operands
-
SDST
Destination SGPR -
SBASE
Base address (SGPR pair) -
offset
Immediate or SGPR offset
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx942 | ✅ Supported |
| gfx1100 | ✅ Supported |
Related PTX Concepts
Related
More in Scalar Memory
Reference
Description
Semantics
Example
s_load_dword s4, s[8:9], 0x10 // s4 = *(s[8:9] + 0x10)Original illustrative example, written for this site (not reproduced from a specific AMD document).
Sources
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.