ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

S_ALLOC_VGPR

T1 amd-gpu alu insn
AMD GPU S_ALLOC_VGPR (ENC_SOP1, SOP1_INST_LITERAL)
SourceAMD Official Machine-Readable GPU ISA XMLs (RDNA & CDNA) (amd_gpu_isa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeCDNA5, RDNA4
AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
License & VersionAMD GPUOpen / MIT (isa_spec_manager)
2026-official
Upstreamhttps://gpuopen.com/machine-readable-isa/
Privilegeuser
ExtensionsCDNA5, RDNA4, SALU

Summary

Attempt to set the wave's VGPR allocation to the specified number of VGPRs (or greater). The desired VGPR count may be specified as a constant or in an SGPR. The request is rounded up to the next block size so a successful allocation may include more than the requested number of VGPRs.

Syntax / Encoding

S_ALLOC_VGPR SSRC0, LITERAL, LITERAL64 | ENC_SOP1 op=83 [CDNA5,RDNA4]; SOP1_INST_LITERAL op=83 [CDNA5,RDNA4]; SOP1_INST_LITERAL64 op=83 [CDNA5]

Binary Encodings (3)

WidthFormatBit PatternMask / Match
32ENC_SOP1101111101xxxxxxx01010011xxxxxxxx0xff80ff00 / 0xbe805300
64SOP1_INST_LITERALxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx01010011xxxxxxxx0x00000000ff80ff00 / 0x00000000be805300
96SOP1_INST_LITERAL64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx01010011xxxxxxxx0x0000000000000000ff80ff00 / 0x0000000000000000be805300

Operands

NameDescription
SSRC0
LITERAL
LITERAL64