tbuffer_store_format_xyz GPU Native ISA AMD Vector
Buffer Memory
Convert 96 bits of data from vector input registers into 3-component formatted data and store the data into a buffer surface.
Encoding
The ENC_MTBUF layout from AMD's machine-readable ISA specification (AMD CDNA 4). Opcode 6 in OP rebuilds 0x00000000E8030000, an identifier AMD lists for this encoding. Not the same in every generation: AMD CDNA 2 (field layout), AMD CDNA 1 (field layout), AMD RDNA 4 (encoding ENC_VBUFFER, opcode 134, field layout), AMD RDNA 3.5 (field layout), AMD RDNA 3 (field layout), AMD RDNA 2 (layout not verifiable), AMD RDNA 1 (layout not verifiable). The same in AMD CDNA 3.
Operands
-
VDATA
Read. N/A Data format: Value can be anything. (OPR_VGPR_OR_ACCVGPR, FMT_ANY) -
VADDR
Read. N/A Data format: Value can be anything. (OPR_VGPR, FMT_ANY) -
SRSRC
Read. N/A Data format: 128-bit buffer resource constant. (OPR_SREG, FMT_RSRC_TYPED) -
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_MTBUF encoding (AMD CDNA 4).
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx1100 | ✅ Supported |
Related
More in Buffer Memory
Reference
Description
Semantics
Example
tbuffer_store_format_xyz v[4:6], off, s[8:11], s3, format:[BUF_FMT_32_FLOAT] offset:4095A 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 479. - LLVM MC assembler tests for AMDGPU ↗ - LLVM Project
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.