buffer_store_lds_dword GPU Native ISA AMD Vector
Buffer Memory
Store one DWORD from LDS memory to system memory without utilizing VGPRs.
Encoding
The ENC_MUBUF layout from AMD's machine-readable ISA specification (AMD CDNA 2). Opcode 61 in OP rebuilds 0x00000000E0F40000, an identifier AMD lists for this encoding. Bits marked unassigned have no field in the specification. Not the same in every generation: AMD CDNA 1 (field layout).
Operands
-
SRSRC
Read. N/A Data format: 128-bit buffer resource constant. (OPR_SREG, FMT_RSRC_SCRATCH) -
SOFFSET
Read. N/A Data format: Value can be anything. (OPR_SSRC_NOLIT, FMT_ANY)
In AMD's order, as its machine-readable ISA specification lists them for the ENC_MUBUF encoding (AMD CDNA 2).
GFX Target Compatibility
Per-target GFX compatibility has not yet been verified for this instruction.
Related
More in Buffer Memory
Reference
Example
buffer_store_lds_dword s[4:7], s0 ldsA real instruction accepted by the LLVM assembler, taken verbatim from LLVM's own AMDGPU MC test suite (gfx8_asm_mubuf.s). Not from an AMD document, and not authored here.
Sources
- User Guide for AMDGPU Backend ↗ - LLVM Project
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.
- LLVM MC assembler tests for AMDGPU ↗ - LLVM Project