s_set_gpr_idx_mode GPU Native ISA AMD Scalar
Branch & Control
Modify the mode used for vector GPR indexing.
Encoding
The ENC_SOPP layout from AMD's machine-readable ISA specification (AMD CDNA 4). Opcode 29 in OP rebuilds 0xBF9D0000, an identifier AMD lists for this encoding. The same in the other 3 generations that define it.
Operands
-
SIMM16
Read. 16-bit integer constant. Data format: N/A (OPR_SIMM16, FMT_NUM_B16)
In AMD's order, as its machine-readable ISA specification lists them for the ENC_SOPP encoding (AMD CDNA 4).
GFX Target Compatibility
Per-target GFX compatibility has not yet been verified for this instruction.
Related
More in Branch & Control
Reference
Semantics
Example
s_set_gpr_idx_mode 0x0A real instruction accepted by the LLVM assembler, taken verbatim from LLVM's own AMDGPU MC test suite (gfx8_asm_sopp.s). 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 145. - AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.
- LLVM MC assembler tests for AMDGPU ↗ - LLVM Project