ds_direct_load GPU Native ISA AMD Vector
LDS Direct / Parameter Fetch
Read a single 32-bit value from LDS to all lanes.
Also written as
lds_direct_load.
AMD's machine-readable ISA specification lists this name for the same instruction.
Encoding
The ENC_VDSDIR layout from AMD's machine-readable ISA specification (AMD RDNA 4). Opcode 1 in OP rebuilds 0xCE100000, an identifier AMD lists for this encoding. Bits marked unassigned have no field in the specification. No other generation in the specification defines this instruction.
Operands
-
VDST
Written. Operand must be a vector GPR. Uses an 8-bit operand field. Data format: 32 bits of arbitrary data. (OPR_VGPR, FMT_NUM_B32)
In AMD's order, as its machine-readable ISA specification lists them for the ENC_VDSDIR encoding (AMD RDNA 4).
GFX Target Compatibility
Per-target GFX compatibility has not yet been verified for this instruction.
Related
More in LDS Direct / Parameter Fetch
Reference
Description
Example
ds_direct_load v17A real instruction accepted by the LLVM assembler, taken verbatim from LLVM's own AMDGPU MC test suite (gfx12_asm_vdsdir.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