AMDGPU / GFX Instructions GPU Native ISA AMD
2,442 instructions - showing 100 per page, page 6 of 25 - AMDGPU/GFX is AMD's native, low-level
GPU instruction set family, assembled directly with no virtual intermediate layer. Supported
instructions and their exact encodings vary by GFX compatibility target (e.g.
gfx942, gfx1100). Scalar instructions execute once per wavefront on
the Scalar ALU; vector instructions execute per-lane on the Vector ALU, gated by the EXEC mask.
| Mnemonic | Syntax | Format | GFX Targets | Unit | Summary |
|---|---|---|---|---|---|
| flat_load_u16 | flat_load_u16 | FLAT | gfx1100 | Load 16 bits of unsigned data from the flat aperture, zero extend to 32 bits and store the result into a vector register. | |
| flat_load_u8 | flat_load_u8 | FLAT | gfx1100 | Load 8 bits of unsigned data from the flat aperture, zero extend to 32 bits and store the result into a vector register. | |
| flat_load_ubyte | flat_load_ubyte | FLAT | gfx1100 | Load 8 bits of unsigned data from the flat aperture, zero extend to 32 bits and store the result into a vector register. | |
| flat_load_ubyte_d16 | flat_load_ubyte_d16 | FLAT | gfx1100 | Load 8 bits of unsigned data from the flat aperture, zero extend to 16 bits and store the result into the low 16 bits of a 32-bit vector register. | |
| flat_load_ubyte_d16_hi | flat_load_ubyte_d16_hi | FLAT | gfx1100 | Load 8 bits of unsigned data from the flat aperture, zero extend to 16 bits and store the result into the high 16 bits of a 32-bit vector register. | |
| flat_load_ushort | flat_load_ushort | FLAT | gfx1100 | Load 16 bits of unsigned data from the flat aperture, zero extend to 32 bits and store the result into a vector register. | |
| flat_prefetch_b8 | flat_prefetch_b8 | FLAT | Load byte into L1 cache. Does not return any data to VGPRs. Does not alter shader dependency counters. | ||
| flat_store_b128 | flat_store_b128 | FLAT | gfx1100 | Store 128 bits of data from vector input registers into the flat aperture. | |
| flat_store_b16 | flat_store_b16 | FLAT | gfx1100 | Store 16 bits of data from a vector register into the flat aperture. | |
| flat_store_b32 | flat_store_b32 | FLAT | gfx1100 | Store 32 bits of data from vector input registers into the flat aperture. | |
| flat_store_b64 | flat_store_b64 | FLAT | gfx1100 | Store 64 bits of data from vector input registers into the flat aperture. | |
| flat_store_b8 | flat_store_b8 | FLAT | gfx1100 | Store 8 bits of data from a vector register into the flat aperture. | |
| flat_store_b96 | flat_store_b96 | FLAT | gfx1100 | Store 96 bits of data from vector input registers into the flat aperture. | |
| flat_store_byte | flat_store_byte | FLAT | gfx1100 | Store 8 bits of data from a vector register into the flat aperture. | |
| flat_store_byte_d16_hi | flat_store_byte_d16_hi | FLAT | gfx1100 | Store 8 bits of data from the high 16 bits of a 32-bit vector register into the flat aperture. | |
| flat_store_d16_hi_b16 | flat_store_d16_hi_b16 | FLAT | gfx1100 | Store 16 bits of data from the high 16 bits of a 32-bit vector register into the flat aperture. | |
| flat_store_d16_hi_b8 | flat_store_d16_hi_b8 | FLAT | gfx1100 | Store 8 bits of data from the high 16 bits of a 32-bit vector register into the flat aperture. | |
| flat_store_dword | flat_store_dword | FLAT | gfx1100 | Store 32 bits of data from vector input registers into the flat aperture. | |
| flat_store_dwordx2 | flat_store_dwordx2 | FLAT | gfx1100 | Store 64 bits of data from vector input registers into the flat aperture. | |
| flat_store_dwordx3 | flat_store_dwordx3 | FLAT | gfx1100 | Store 96 bits of data from vector input registers into the flat aperture. | |
| flat_store_dwordx4 | flat_store_dwordx4 | FLAT | gfx1100 | Store 128 bits of data from vector input registers into the flat aperture. | |
| flat_store_short | flat_store_short | FLAT | gfx1100 | Store 16 bits of data from a vector register into the flat aperture. | |
| flat_store_short_d16_hi | flat_store_short_d16_hi | FLAT | gfx1100 | Store 16 bits of data from the high 16 bits of a 32-bit vector register into the flat aperture. | |
| global_atomic_add | global_atomic_add VDST, VADDR, VDATA, SADDR | GLOBAL | gfx942, gfx1100 | Vector Memory Unit | Atomically add a per-lane value to a global-memory location. |
| global_atomic_add_f32 | global_atomic_add_f32 | GLOBAL | Add two single-precision float values stored in the data register and a location in the global aperture. Store the original value from global aperture into a vector register iff the temporal hint enables atomic return. | ||
| global_atomic_add_f64 | global_atomic_add_f64 | GLOBAL | gfx942 | Add a double-precision float value in the data register to a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | |
| global_atomic_add_x2 | global_atomic_add_x2 | GLOBAL | Add two unsigned 64-bit integer values stored in the data register and a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_and | global_atomic_and | GLOBAL | Calculate bitwise AND given two unsigned 32-bit integer values stored in the data register and a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_and_x2 | global_atomic_and_x2 | GLOBAL | Calculate bitwise AND given two unsigned 64-bit integer values stored in the data register and a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_cmpswap | global_atomic_cmpswap | GLOBAL | Compare two unsigned 32-bit integer values stored in the data comparison register and a location in the global aperture. Modify the memory location with a value in the data source register iff the comparison is equal. | ||
| global_atomic_cmpswap_f32 | global_atomic_cmpswap_f32 | GLOBAL | Compare two single-precision float values stored in the data comparison register and a location in the global aperture. Modify the memory location with a value in the data source register iff the comparison is equal. | ||
| global_atomic_cmpswap_x2 | global_atomic_cmpswap_x2 | GLOBAL | Compare two unsigned 64-bit integer values stored in the data comparison register and a location in the global aperture. Modify the memory location with a value in the data source register iff the comparison is equal. | ||
| global_atomic_cond_sub_u32 | global_atomic_cond_sub_u32 | GLOBAL | Subtract an unsigned 32-bit integer value in the data register from a location in the global aperture only if the memory value is greater than or equal to the data register value. Store the original value from global aperture into a vector register iff the temporal hint enables atomic return. | ||
| global_atomic_csub | global_atomic_csub | GLOBAL | Subtract an unsigned 32-bit integer location in the global aperture from a value in the data register and clamp the result to zero. Store the original value from global aperture into a vector register iff the GLC bit is set. | ||
| global_atomic_dec | global_atomic_dec | GLOBAL | Decrement an unsigned 32-bit integer value from a location in the global aperture with wraparound to a value in the data register if the decrement yields a negative value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_dec_x2 | global_atomic_dec_x2 | GLOBAL | Decrement an unsigned 64-bit integer value from a location in the global aperture with wraparound to a value in the data register if the decrement yields a negative value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_fcmpswap | global_atomic_fcmpswap | GLOBAL | Compare two single-precision float values stored in the data comparison register and a location in the global aperture. Modify the memory location with a value in the data source register iff the comparison is equal. | ||
| global_atomic_fcmpswap_x2 | global_atomic_fcmpswap_x2 | GLOBAL | Compare two double-precision float values stored in the data comparison register and a location in the global aperture. Modify the memory location with a value in the data source register iff the comparison is equal. | ||
| global_atomic_fmax | global_atomic_fmax | GLOBAL | Select the maximum of two single-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the GLC bit is set. | ||
| global_atomic_fmax_x2 | global_atomic_fmax_x2 | GLOBAL | Select the maximum of two double-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the GLC bit is set. | ||
| global_atomic_fmin | global_atomic_fmin | GLOBAL | Select the minimum of two single-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the GLC bit is set. | ||
| global_atomic_fmin_x2 | global_atomic_fmin_x2 | GLOBAL | Select the minimum of two double-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the GLC bit is set. | ||
| global_atomic_inc | global_atomic_inc | GLOBAL | Increment an unsigned 32-bit integer value from a location in the global aperture with wraparound to 0 if the value exceeds a value in the data register. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_inc_x2 | global_atomic_inc_x2 | GLOBAL | Increment an unsigned 64-bit integer value from a location in the global aperture with wraparound to 0 if the value exceeds a value in the data register. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_max_f32 | global_atomic_max_f32 | GLOBAL | Select the maximum of two single-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the GLC bit is set. | ||
| global_atomic_max_f64 | global_atomic_max_f64 | GLOBAL | gfx942 | Select the maximum of two double-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | |
| global_atomic_max_num_f32 | global_atomic_max_num_f32 | GLOBAL | Select the IEEE maximumNumber() of two single-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. | ||
| global_atomic_max_num_f64 | global_atomic_max_num_f64 | GLOBAL | Select the IEEE maximumNumber() of two double-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. | ||
| global_atomic_min_f32 | global_atomic_min_f32 | GLOBAL | Select the minimum of two single-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the GLC bit is set. | ||
| global_atomic_min_f64 | global_atomic_min_f64 | GLOBAL | gfx942 | Select the minimum of two double-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | |
| global_atomic_min_num_f32 | global_atomic_min_num_f32 | GLOBAL | Select the IEEE minimumNumber() of two single-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. | ||
| global_atomic_min_num_f64 | global_atomic_min_num_f64 | GLOBAL | Select the IEEE minimumNumber() of two double-precision float inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. | ||
| global_atomic_or | global_atomic_or | GLOBAL | Calculate bitwise OR given two unsigned 32-bit integer values stored in the data register and a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_or_x2 | global_atomic_or_x2 | GLOBAL | Calculate bitwise OR given two unsigned 64-bit integer values stored in the data register and a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_ordered_add_b64 | global_atomic_ordered_add_b64 | GLOBAL | Given an (ID, value) pair in memory, increment the value by a given amount if the ID matches an ID provided by the shader. | ||
| global_atomic_pk_add_bf16 | global_atomic_pk_add_bf16 | GLOBAL | Add a packed 2-component BF16 float value in the data register to a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_pk_add_f16 | global_atomic_pk_add_f16 | GLOBAL | Add a packed 2-component half-precision float value from the data register to a location in the global aperture. Store the original value from global aperture into a vector register iff the temporal hint enables atomic return. | ||
| global_atomic_smax | global_atomic_smax | GLOBAL | Select the maximum of two signed 32-bit integer inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_smax_x2 | global_atomic_smax_x2 | GLOBAL | Select the maximum of two signed 64-bit integer inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_smin | global_atomic_smin | GLOBAL | Select the minimum of two signed 32-bit integer inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_smin_x2 | global_atomic_smin_x2 | GLOBAL | Select the minimum of two signed 64-bit integer inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_sub | global_atomic_sub | GLOBAL | Subtract an unsigned 32-bit integer value stored in the data register from a value stored in a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_sub_x2 | global_atomic_sub_x2 | GLOBAL | Subtract an unsigned 64-bit integer value stored in the data register from a value stored in a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_swap | global_atomic_swap | GLOBAL | Swap an unsigned 32-bit integer value in the data register with a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_swap_x2 | global_atomic_swap_x2 | GLOBAL | Swap an unsigned 64-bit integer value in the data register with a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_umax | global_atomic_umax | GLOBAL | Select the maximum of two unsigned 32-bit integer inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_umax_x2 | global_atomic_umax_x2 | GLOBAL | Select the maximum of two unsigned 64-bit integer inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_umin | global_atomic_umin | GLOBAL | Select the minimum of two unsigned 32-bit integer inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_umin_x2 | global_atomic_umin_x2 | GLOBAL | Select the minimum of two unsigned 64-bit integer inputs, given two values stored in the data register and a location in the global aperture. Update the global aperture with the selected value. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_xor | global_atomic_xor | GLOBAL | Calculate bitwise XOR given two unsigned 32-bit integer values stored in the data register and a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_atomic_xor_x2 | global_atomic_xor_x2 | GLOBAL | Calculate bitwise XOR given two unsigned 64-bit integer values stored in the data register and a location in the global aperture. Store the original value from global aperture into a vector register iff the SC0 bit is set. | ||
| global_inv | global_inv | GLOBAL | Invalidate cache lines based on the SCOPE field. Increments/decrements LOAD_CNT. | ||
| global_load_async_to_lds_b128 | global_load_async_to_lds_b128 | GLOBAL | Load data asynchronously from global memory to LDS. Dependencies are managed with ASYNCCNT. | ||
| global_load_async_to_lds_b32 | global_load_async_to_lds_b32 | GLOBAL | Load data asynchronously from global memory to LDS. Dependencies are managed with ASYNCCNT. | ||
| global_load_async_to_lds_b64 | global_load_async_to_lds_b64 | GLOBAL | Load data asynchronously from global memory to LDS. Dependencies are managed with ASYNCCNT. | ||
| global_load_async_to_lds_b8 | global_load_async_to_lds_b8 | GLOBAL | Load data asynchronously from global memory to LDS. Dependencies are managed with ASYNCCNT. | ||
| global_load_block | global_load_block | GLOBAL | Load a block of data from the global aperture. | ||
| global_load_dword | global_load_dword VDST, VADDR, SADDR, offset | GLOBAL | gfx942, gfx1100 | Vector Memory Unit | Load one 32-bit dword per lane from the global address space using a 64-bit per-lane address. |
| global_load_dword_addtid | global_load_dword_addtid | GLOBAL | Load 32 bits of data from the global aperture into a vector register. The memory base address is provided in a scalar register and the lane ID is used as an offset. | ||
| global_load_dwordx2 | global_load_dwordx2 | GLOBAL | Load 64 bits of data from the global aperture into a vector register. | ||
| global_load_dwordx3 | global_load_dwordx3 | GLOBAL | Load 96 bits of data from the global aperture into a vector register. | ||
| global_load_dwordx4 | global_load_dwordx4 | GLOBAL | Load 128 bits of data from the global aperture into a vector register. | ||
| global_load_lds_dword | global_load_lds_dword | GLOBAL | Load 32 bits of untyped data from the global aperture and store the result into a data share. | ||
| global_load_lds_dwordx3 | global_load_lds_dwordx3 | GLOBAL | Untyped buffer load 3 dwords, store result into data share. | ||
| global_load_lds_dwordx4 | global_load_lds_dwordx4 | GLOBAL | Untyped buffer load 4 dwords, store result into data share. | ||
| global_load_lds_sbyte | global_load_lds_sbyte | GLOBAL | Load 8 bits of untyped data from the global aperture, sign extend to 32 bits and store the result into a data share. | ||
| global_load_lds_sshort | global_load_lds_sshort | GLOBAL | Load 16 bits of untyped data from the global aperture, sign extend to 32 bits and store the result into a data share. | ||
| global_load_lds_ubyte | global_load_lds_ubyte | GLOBAL | Load 8 bits of untyped data from the global aperture, zero extend to 32 bits and store the result into a data share. | ||
| global_load_lds_ushort | global_load_lds_ushort | GLOBAL | Load 16 bits of untyped data from the global aperture, zero extend to 32 bits and store the result into a data share. | ||
| global_load_monitor_b128 | global_load_monitor_b128 | GLOBAL | Load 128 bits of data from the global aperture into a vector register. | ||
| global_load_monitor_b32 | global_load_monitor_b32 | GLOBAL | Load 32 bits of data from the global aperture into a vector register. | ||
| global_load_monitor_b64 | global_load_monitor_b64 | GLOBAL | Load 64 bits of data from the global aperture into a vector register. | ||
| global_load_sbyte | global_load_sbyte | GLOBAL | Load 8 bits of signed data from the global aperture, sign extend to 32 bits and store the result into a vector register. | ||
| global_load_sbyte_d16 | global_load_sbyte_d16 | GLOBAL | Load 8 bits of signed data from the global aperture, sign extend to 16 bits and store the result into the low 16 bits of a 32-bit vector register. | ||
| global_load_sbyte_d16_hi | global_load_sbyte_d16_hi | GLOBAL | Load 8 bits of signed data from the global aperture, sign extend to 16 bits and store the result into the high 16 bits of a 32-bit vector register. | ||
| global_load_short_d16 | global_load_short_d16 | GLOBAL | Load 16 bits of unsigned data from the global aperture and store the result into the low 16 bits of a 32-bit vector register. | ||
| global_load_short_d16_hi | global_load_short_d16_hi | GLOBAL | Load 16 bits of unsigned data from the global aperture and store the result into the high 16 bits of a 32-bit vector register. | ||
| global_load_sshort | global_load_sshort | GLOBAL | Load 16 bits of signed data from the global aperture, sign extend to 32 bits and store the result into a vector register. | ||
| global_load_tr4_b64 | global_load_tr4_b64 | GLOBAL | Load a 16x32 or 32x16 matrix of 4-bit data from the global aperture, transpose data between row-major and column-major order, and store the result into a 64-bit vector register. | ||
| global_load_tr6_b96 | global_load_tr6_b96 | GLOBAL | Load a 16x32 or 32x16 matrix of 6-bit data from the global aperture, transpose data between row-major and column-major order, and store the result into a 96-bit vector register. |
Source
Instruction names, formats and GFX targets come from LLVM's AMDGPU backend. Operands, bit layouts and the instructions that backend's TableGen does not reach come from AMD's machine-readable ISA specification; descriptions and semantics from AMD's own manuals and that specification; examples from LLVM's assembler tests. Each instruction page cites the sources it uses; AMD's ROCm documentation hub is the architecture-level reference. AMD machine-readable ISA specification ↗ · AMD Instinct MI300 ISA manual ↗ · LLVM AMDGPU backend ↗ · ROCm documentation ↗