s_version GPU Native ISA AMD Scalar
Scalar Arithmetic
Do nothing. This opcode is used to specify the microcode version for tools that interpret shader microcode.
Encoding
The ENC_SOPK layout from AMD's machine-readable ISA specification (AMD CDNA 5). Opcode 1 in OP rebuilds 0xB0800000, an identifier AMD lists for this encoding. The same in the other 5 generations that define it.
Operands
-
SIMM16
Read. Microcode version header. Data format: 16 bits of arbitrary data. (OPR_VERSION, FMT_NUM_B16)
In AMD's order, as its machine-readable ISA specification lists them for the ENC_SOPK encoding (AMD CDNA 5).
GFX Target Compatibility
Per-target GFX compatibility has not yet been verified for this instruction.
Related
More in Scalar Arithmetic
Reference
Example
s_version 0A real instruction accepted by the LLVM assembler, taken verbatim from LLVM's own AMDGPU MC test suite (gfx13_asm_sopk.s). Not from an AMD document, and not authored here.
Sources
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.
- LLVM MC assembler tests for AMDGPU ↗ - LLVM Project