s_set_gpr_idx_idx GPU Native ISA AMD Scalar
Scalar Arithmetic
Set the index used in vector GPR indexing. S_SET_GPR_IDX_ON, S_SET_GPR_IDX_OFF, S_SET_GPR_IDX_MODE and S_SET_GPR_IDX_IDX are related instructions.
Encoding
The ENC_SOP1 layout from AMD's machine-readable ISA specification (AMD CDNA 4). Opcode 50 in OP rebuilds 0xBE803200, an identifier AMD lists for this encoding. The same in the other 3 generations that define it.
Operands
-
SSRC0
Read. N/A Data format: N/A (OPR_SSRC, FMT_NUM_B32)
In AMD's order, as its machine-readable ISA specification lists them for the ENC_SOP1 encoding (AMD CDNA 4).
GFX Target Compatibility
Per-target GFX compatibility has not yet been verified for this instruction.
Related
More in Scalar Arithmetic
Reference
Semantics
Example
s_set_gpr_idx_idx 0A real instruction accepted by the LLVM assembler, taken verbatim from LLVM's own AMDGPU MC test suite (gfx8_asm_sop1.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 130. - AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.
- LLVM MC assembler tests for AMDGPU ↗ - LLVM Project