lds_param_load GPU Native ISA AMD Vector
LDS Direct / Parameter Fetch
Transfer parameter data from LDS to VGPRs and expand data in LDS using the NewPrimMask (provided in M0) to place per-quad data into lanes 0-3 of each…
Also written as
ds_param_load.
AMD's machine-readable ISA specification lists this name for the same instruction.
Encoding
The ENC_LDSDIR layout from AMD's machine-readable ISA specification (AMD RDNA 3.5). Opcode 0 in OP rebuilds 0xCE000000, an identifier AMD lists for this encoding. Bits marked unassigned have no field in the specification. The same in AMD RDNA 3.
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) -
ATTR
Read. Attribute parameter for interpolation. Data format: 32 bits of arbitrary data. (OPR_ATTR, FMT_NUM_B32)
In AMD's order, as its machine-readable ISA specification lists them for the ENC_LDSDIR encoding (AMD RDNA 3.5).
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx1100 | ✅ Supported |
Related
More in LDS Direct / Parameter Fetch
Reference
Description
Example
lds_param_load v7, attr2.y wait_vdst:9A 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 Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.
- LLVM MC assembler tests for AMDGPU ↗ - LLVM Project