AMDGPU / GFX Instructions GPU Native ISA AMD
2,442 instructions - showing 100 per page, page 22 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 |
|---|---|---|---|---|---|
| v_min3_num_f16 | v_min3_num_f16 | VOP3 | Select the IEEE minimumNumber() of three half-precision float inputs and store the selected value into a vector register. | ||
| v_min3_num_f32 | v_min3_num_f32 | VOP3 | Select the IEEE minimumNumber() of three single-precision float inputs and store the selected value into a vector register. | ||
| v_min3_u16 | v_min3_u16 | VOP3 | gfx1100 | Select the minimum of three unsigned 16-bit integer inputs and store the selected value into a vector register. | |
| v_min3_u32 | v_min3_u32 | VOP3 | gfx1100 | Select the minimum of three unsigned 32-bit integer inputs and store the selected value into a vector register. | |
| v_min_f16 | v_min_f16 | VOP2 | gfx1100 | Select the minimum of two half-precision float inputs and store the result into a vector register. | |
| v_min_f32 | v_min_f32 | VOP2 | gfx1100 | Select the minimum of two single-precision float inputs and store the result into a vector register. | |
| v_min_f64 | v_min_f64 | VOP2 | Select the minimum of two double-precision float inputs and store the selected value into a vector register. | ||
| v_min_i16 | v_min_i16 | VOP2 | gfx1100 | Select the minimum of two signed 16-bit integer inputs and store the selected value into a vector register. | |
| v_min_i32 | v_min_i32 | VOP2 | gfx1100 | Select the minimum of two signed 32-bit integer inputs and store the selected value into a vector register. | |
| v_min_i64 | v_min_i64 | VOP3 | Select the minimum of two signed 64-bit integer inputs and store the selected value into a vector register. | ||
| v_min_legacy_f32 | v_min_legacy_f32 | VOP2 | AMDGPU VOP2 vector instruction operating on f32 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) | ||
| v_min_num_f16 | v_min_num_f16 | VOP2 | Select the IEEE minimumNumber() of two half-precision float inputs and store the selected value into a vector register. | ||
| v_min_num_f32 | v_min_num_f32 | VOP2 | Select the IEEE minimumNumber() of two single-precision float inputs and store the selected value into a vector register. | ||
| v_min_num_f64 | v_min_num_f64 | VOP2 | Select the IEEE minimumNumber() of two double-precision float inputs and store the selected value into a vector register. | ||
| v_min_u16 | v_min_u16 | VOP2 | gfx1100 | Select the minimum of two unsigned 16-bit integer inputs and store the selected value into a vector register. | |
| v_min_u32 | v_min_u32 | VOP2 | gfx1100 | Select the minimum of two unsigned 32-bit integer inputs and store the selected value into a vector register. | |
| v_min_u64 | v_min_u64 | VOP3 | Select the minimum of two unsigned 64-bit integer inputs and store the selected value into a vector register. | ||
| v_minimum3_f16 | v_minimum3_f16 | VOP3 | gfx1100 | Select the IEEE minimum() of three half-precision float inputs and store the selected value into a vector register. | |
| v_minimum3_f32 | v_minimum3_f32 | VOP3 | gfx1100 | Select the IEEE minimum() of three single-precision float inputs and store the result into a vector register. | |
| v_minimum_f16 | v_minimum_f16 | VOP3 | gfx1100 | Select the IEEE minimum() of two half-precision float inputs and store the selected value into a vector register. | |
| v_minimum_f32 | v_minimum_f32 | VOP3 | gfx1100 | Select the IEEE minimum() of two single-precision float inputs and store the selected value into a vector register. | |
| v_minimum_f64 | v_minimum_f64 | VOP3 | gfx1100 | Select the IEEE minimum() of two double-precision float inputs and store the selected value into a vector register. | |
| v_minimummaximum_f16 | v_minimummaximum_f16 | VOP3 | gfx1100 | Select the IEEE minimum() of the first two half-precision float inputs and then select the IEEE maximum() of that result and third half-precision float input. Store the final result into a vector register. | |
| v_minimummaximum_f32 | v_minimummaximum_f32 | VOP3 | gfx1100 | Select the IEEE minimum() of the first two single-precision float inputs and then select the IEEE maximum() of that result and third single-precision float input. Store the final result into a vector register. | |
| v_minmax_f16 | v_minmax_f16 | VOP3 | gfx1100 | Select the minimum of the first two half-precision float inputs and then select the maximum of that result and third half-precision float input. Store the final result into a vector register. | |
| v_minmax_f32 | v_minmax_f32 | VOP3 | gfx1100 | Select the minimum of the first two single-precision float inputs and then select the maximum of that result and third single-precision float input. Store the final result into a vector register. | |
| v_minmax_i32 | v_minmax_i32 | VOP3 | gfx1100 | Select the minimum of the first two signed 32-bit integer inputs and then select the maximum of that result and third signed 32-bit integer input. Store the final result into a vector register. | |
| v_minmax_num_f16 | v_minmax_num_f16 | VOP3 | Select the IEEE minimumNumber() of the first two half-precision float inputs and then select the IEEE maximumNumber() of that result and third half-precision float input. Store the final result into a vector register. | ||
| v_minmax_num_f32 | v_minmax_num_f32 | VOP3 | Select the IEEE minimumNumber() of the first two single-precision float inputs and then select the IEEE maximumNumber() of that result and third single-precision float input. Store the final result into a vector register. | ||
| v_minmax_u32 | v_minmax_u32 | VOP3 | gfx1100 | Select the minimum of the first two unsigned 32-bit integer inputs and then select the maximum of that result and third unsigned 32-bit integer input. Store the final result into a vector register. | |
| v_mov_b16 | v_mov_b16 | VOP1 | Move 16-bit data from a vector input into a vector register. | ||
| v_mov_b32 | v_mov_b32 | VOP1 | gfx1100 | Move 32-bit data from a vector input into a vector register. | |
| v_mov_b64 | v_mov_b64 | VOP1 | Move data from a 64-bit vector input into a vector register. | ||
| v_movreld_b32 | v_movreld_b32 | VOP1 | gfx1100 | Move data from a vector input into a relatively-indexed vector register. | |
| v_movrels_b32 | v_movrels_b32 | VOP1 | gfx1100 | Move data from a relatively-indexed vector register into another vector register. | |
| v_movrelsd_2_b32 | v_movrelsd_2_b32 | VOP1 | Move data from a relatively-indexed vector register into another relatively-indexed vector register, using different offsets for each index. | ||
| v_movrelsd_b32 | v_movrelsd_b32 | VOP1 | gfx1100 | Move data from a relatively-indexed vector register into another relatively-indexed vector register. | |
| v_mqsad_pk_u16_u8 | v_mqsad_pk_u16_u8 | VOP3 | gfx1100 | Perform the V_MSAD_U8 operation four times using different slices of the first array, all entries of the second array and each entry of the third array. Truncate each result to 16 bits, pack the values into a 4-entry array and store the array into a vector register. | |
| v_mqsad_u32_u8 | v_mqsad_u32_u8 | VOP3 | gfx1100 | Perform the V_MSAD_U8 operation four times using different slices of the first array, all entries of the second array and each entry of the third array. Pack each 32-bit value into a 4-entry array and store the array into a vector register. | |
| v_msad_u8 | v_msad_u8 | VOP3 | gfx1100 | Calculate the sum of absolute differences of elements in two packed 4-component unsigned 8-bit integer inputs, except that elements where the second input (known as the reference input) is zero are not included in the sum. | |
| v_mul_f16 | v_mul_f16 | VOP2 | gfx1100 | Multiply two floating point inputs and store the result into a vector register. | |
| v_mul_f32 | v_mul_f32 VDST, S0, S1 | VOP2 | gfx942, gfx1100 | Vector ALU | Per-lane single-precision floating-point multiply. |
| v_mul_f64 | v_mul_f64 | VOP2 | gfx1100 | Multiply two floating point inputs and store the result into a vector register. | |
| v_mul_f64_pseudo | v_mul_f64_pseudo | VOP2 | AMDGPU VOP2 vector instruction operating on f64 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) | ||
| v_mul_hi_i32 | v_mul_hi_i32 | VOP3 | gfx1100 | Multiply two signed 32-bit integer inputs and store the high 32 bits of the result into a vector register. | |
| v_mul_hi_i32_i24 | v_mul_hi_i32_i24 | VOP2 | gfx1100 | Multiply two signed 24-bit integer inputs and store the high 32 bits of the result as a signed 32-bit integer into a vector register. | |
| v_mul_hi_u32 | v_mul_hi_u32 | VOP3 | gfx1100 | Multiply two unsigned 32-bit integer inputs and store the high 32 bits of the result into a vector register. | |
| v_mul_hi_u32_u24 | v_mul_hi_u32_u24 | VOP2 | gfx1100 | Multiply two unsigned 24-bit integer inputs and store the high 32 bits of the result as an unsigned 32-bit integer into a vector register. | |
| v_mul_i32_i24 | v_mul_i32_i24 | VOP2 | gfx1100 | Multiply two signed 24-bit integer inputs and store the result as a signed 32-bit integer into a vector register. | |
| v_mul_legacy_f32 | v_mul_legacy_f32 | VOP2 | Multiply two floating point inputs and store the result into a vector register. Follows DX9 rules where 0.0 times anything produces 0.0 (this differs from other APIs when the other input is infinity or NaN). | ||
| v_mul_lo_i32 | v_mul_lo_i32 | VOP3 | AMDGPU VOP3 vector instruction operating on i32 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) | ||
| v_mul_lo_u16 | v_mul_lo_u16 | VOP2 | gfx1100 | Multiply two unsigned 16-bit integer inputs and store the low bits of the result into a vector register. | |
| v_mul_lo_u32 | v_mul_lo_u32 VDST, S0, S1 | VOP3 | gfx942, gfx1100 | Vector ALU | Per-lane 32-bit unsigned multiply, low half of the product. |
| v_mul_u32_u24 | v_mul_u32_u24 | VOP2 | gfx1100 | Multiply two unsigned 24-bit integer inputs and store the result as an unsigned 32-bit integer into a vector register. | |
| v_mul_u64 | v_mul_u64 | VOP2 | Multiply two unsigned 64-bit integer inputs and store the result into a vector register. | ||
| v_mullit_f32 | v_mullit_f32 | VOP3 | gfx1100 | Multiply two floating point inputs and store the result into a vector register. Specific rules apply to accommodate lighting calculations: 0.0 * x = 0.0 and alternate INF, NAN, overflow rules apply. | |
| v_nop | v_nop | VOP1 | gfx1100 | Do nothing. | |
| v_not_b16 | v_not_b16 | VOP1 | gfx1100 | Calculate bitwise negation on a vector input and store the result into a vector register. | |
| v_not_b32 | v_not_b32 | VOP1 | gfx1100 | Calculate bitwise negation on a vector input and store the result into a vector register. | |
| v_or3_b32 | v_or3_b32 | VOP3 | gfx1100 | Calculate the bitwise OR of three vector inputs and store the result into a vector register. | |
| v_or_b16 | v_or_b16 | VOP3 | gfx1100 | Calculate bitwise OR on two vector inputs and store the result into a vector register. | |
| v_or_b16_fake16 | v_or_b16_fake16 | VOP2 | AMDGPU VOP2 vector instruction operating on b16 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) | ||
| v_or_b16_t16 | v_or_b16_t16 | VOP2 | AMDGPU VOP2 vector instruction operating on b16 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) | ||
| v_or_b32 | v_or_b32 | VOP2 | gfx1100 | Calculate bitwise OR on two vector inputs and store the result into a vector register. | |
| v_pack_b32_f16 | v_pack_b32_f16 | VOP3 | gfx1100 | Pack two half-precision float values into a single 32-bit value and store the result into a vector register. | |
| v_perm_b32 | v_perm_b32 | VOP3 | gfx1100 | Permute a 64-bit value constructed from two vector inputs (most significant bits come from the first input) using a per-lane selector from the third input. The lane selector allows each byte of the result to choose from any of the 8 input bytes, perform sign extension or pad with 0/1 bits. | |
| v_perm_pk16_b4_u4 | v_perm_pk16_b4_u4 | VOP3 | Given a 64-bit lookup table in the first two vector inputs (most significant bits come from the first input) and a 16-vector of 4-bit index values in the third vector input, look up each index in the table and produce a 16-vector of 4-bit output values. Store the result into a vector register. | ||
| v_perm_pk16_b6_u4 | v_perm_pk16_b6_u4 | VOP3 | Given a 96-bit lookup table in the first two vector inputs (most significant bits come from the first input) and a 16-vector of 4-bit index values in the third vector input, look up each index in the table and produce a 16-vector of 6-bit output values. Store the result into a vector register. | ||
| v_perm_pk16_b8_u4 | v_perm_pk16_b8_u4 | VOP3 | Given a 128-bit lookup table in the first two vector inputs (most significant bits come from the first input) and a 16-vector of 4-bit index values in the third vector input, look up each index in the table and produce a 16-vector of 8-bit output values. Store the result into a vector register. | ||
| v_permlane16_b32 | v_permlane16_b32 | VOP3 | gfx1100 | Perform arbitrary gather-style operation within a row (16 contiguous lanes). | |
| v_permlane16_swap_b32 | v_permlane16_swap_b32 | VOP1 | Swap data between two vector registers. Odd rows of the first operand are swapped with even rows of the second operand (one row is 16 lanes). | ||
| v_permlane16_var_b32 | v_permlane16_var_b32 | VOP3 | Perform arbitrary gather-style operation within a row (16 contiguous lanes). | ||
| v_permlane32_swap_b32 | v_permlane32_swap_b32 | VOP1 | Swap data between two vector registers. Rows 2 and 3 of the first operand are swapped with rows 0 and 1 of the second operand (one row is 16 lanes). | ||
| v_permlane64_b32 | v_permlane64_b32 | VOP1 | gfx1100 | Perform a specific permutation across lanes where the high half and low half of a wave64 are swapped. Performs no operation in wave32 mode. | |
| v_permlane_bcast_b32 | v_permlane_bcast_b32 | VOP3 | Permute data by broadcasting data from one lane to members of the lane group. | ||
| v_permlane_down_b32 | v_permlane_down_b32 | VOP3 | Permute data by shifting data down into lower lanes within the lane group. | ||
| v_permlane_idx_gen_b32 | v_permlane_idx_gen_b32 | VOP3 | Generate an index suitable for DS_BPERMUTE to permute data non-uniformly within lane groups. | ||
| v_permlane_up_b32 | v_permlane_up_b32 | VOP3 | Permute data by shifting data up into higher lanes within the lane group. | ||
| v_permlane_xor_b32 | v_permlane_xor_b32 | VOP3 | Permute data based on an XOR mask. | ||
| v_permlanex16_b32 | v_permlanex16_b32 | VOP3 | gfx1100 | Perform arbitrary gather-style operation across two rows (each row is 16 contiguous lanes). | |
| v_permlanex16_var_b32 | v_permlanex16_var_b32 | VOP3 | Perform arbitrary gather-style operation across two rows (each row is 16 contiguous lanes). | ||
| v_pipeflush | v_pipeflush | VOP1 | gfx1100 | Flush the vector ALU pipeline through the destination cache. | |
| v_pk_add_bf16 | v_pk_add_bf16 | VOP3P | Add two packed BF16 float inputs component-wise and store the result into a vector register. No carry-in or carry-out support. | ||
| v_pk_add_f16 | v_pk_add_f16 | VOP3P | gfx1100 | Add two packed half-precision float inputs component-wise and store the result into a vector register. No carry- in or carry-out support. | |
| v_pk_add_f32 | v_pk_add_f32 | VOP3P | Add two packed single-precision float inputs component-wise and store the result into a vector register. No carry-in or carry-out support. | ||
| v_pk_add_f64 | v_pk_add_f64 | VOP3P | AMDGPU VOP3P vector instruction operating on f64 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) | ||
| v_pk_add_i16 | v_pk_add_i16 | VOP3P | gfx1100 | Add two packed signed 16-bit integer inputs component-wise and store the result into a vector register. No carry-in or carry-out support. | |
| v_pk_add_max_i16 | v_pk_add_max_i16 | VOP3P | Add two packed signed 16-bit integer inputs component-wise with clamping enabled, then select the maximum of those values and the third packed input. Store the selected packed values into a vector register. | ||
| v_pk_add_max_u16 | v_pk_add_max_u16 | VOP3P | Add two packed unsigned 16-bit integer inputs component-wise with clamping enabled, then select the maximum of those values and the third packed input. Store the selected packed values into a vector register. | ||
| v_pk_add_min_i16 | v_pk_add_min_i16 | VOP3P | Add two packed signed 16-bit integer inputs component-wise with clamping enabled, then select the minimum of those values and the third packed input. Store the selected packed values into a vector register. | ||
| v_pk_add_min_u16 | v_pk_add_min_u16 | VOP3P | Add two packed unsigned 16-bit integer inputs component-wise with clamping enabled, then select the minimum of those values and the third packed input. Store the selected packed values into a vector register. | ||
| v_pk_add_nc_u64 | v_pk_add_nc_u64 | VOP3P | AMDGPU VOP3P vector instruction operating on u64 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) | ||
| v_pk_add_u16 | v_pk_add_u16 | VOP3P | gfx1100 | Add two packed unsigned 16-bit integer inputs component-wise and store the result into a vector register. No carry-in or carry-out support. | |
| v_pk_ashrrev_i16 | v_pk_ashrrev_i16 | VOP3P | gfx1100 | Given a packed shift count in the first vector input, calculate the component-wise arithmetic shift right (preserving sign bit) of the second packed vector input and store the result into a vector register. | |
| v_pk_fma_bf16 | v_pk_fma_bf16 | VOP3P | Multiply two packed BF16 float inputs component-wise and add a third input component-wise using fused multiply add, and store the result into a vector register. | ||
| v_pk_fma_f16 | v_pk_fma_f16 | VOP3P | gfx1100 | Multiply two packed half-precision float inputs component-wise and add a third input component-wise using fused multiply add, and store the result into a vector register. | |
| v_pk_fma_f32 | v_pk_fma_f32 | VOP3P | Multiply two packed single-precision float inputs component-wise and add a third input component-wise using fused multiply add, and store the result into a vector register. | ||
| v_pk_fma_f64 | v_pk_fma_f64 | VOP3P | AMDGPU VOP3P vector instruction operating on f64 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) | ||
| v_pk_fmac_f16 | v_pk_fmac_f16 | VOP2 | gfx1100 | Multiply two packed half-precision float inputs component-wise and accumulate the result into the destination register using fused multiply add. | |
| v_pk_lshl_add_u64 | v_pk_lshl_add_u64 | VOP3P | AMDGPU VOP3P vector instruction operating on u64 data. (Format and name extracted from LLVM's AMDGPU backend source - semantics not yet curated.) |
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 ↗