// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --unique --sort --version 6 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx906 -filetype=null %s 2>&1 | FileCheck -check-prefix=GFX906-ERR %s // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx942 -filetype=null %s 2>&1 | FileCheck -check-prefix=GFX942-ERR %s // RUN: llvm-mc -triple=amdgcn -mcpu=gfx950 -show-encoding < %s | FileCheck --check-prefix=GFX950 %s // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 -filetype=null %s 2>&1 | FileCheck -check-prefix=GFX12-ERR %s v_ashr_pk_i8_i32 v1, v2, v3, v4 op_sel:[0,0,0,1] // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_i8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_i8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_i8_i32 // GFX950: v_ashr_pk_i8_i32 v1, v2, v3, v4 op_sel:[0,0,0,1] ; encoding: [0x01,0x40,0x65,0xd2,0x02,0x07,0x12,0x04] v_ashr_pk_i8_i32 v2, s4, 4, v2 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_i8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_i8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_i8_i32 // GFX950: v_ashr_pk_i8_i32 v2, s4, 4, v2 ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x08,0x09,0x04] v_ashr_pk_i8_i32 v2, s4, v7, v8 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_i8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_i8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_i8_i32 // GFX950: v_ashr_pk_i8_i32 v2, s4, v7, v8 ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x0e,0x22,0x04] v_ashr_pk_i8_i32 v2, v4, 0, 1 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_i8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_i8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_i8_i32 // GFX950: v_ashr_pk_i8_i32 v2, v4, 0, 1 ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x01,0x05,0x02] v_ashr_pk_i8_i32 v2, v4, 3, s2 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_i8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_i8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_i8_i32 // GFX950: v_ashr_pk_i8_i32 v2, v4, 3, s2 ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x07,0x09,0x00] v_ashr_pk_i8_i32 v2, v4, v7, 0.5 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_i8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_i8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_i8_i32 // GFX950: v_ashr_pk_i8_i32 v2, v4, v7, 0.5 ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x0f,0xc2,0x03] v_ashr_pk_u8_i32 v1, v2, v3, v4 op_sel:[0,0,0,1] // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_u8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_u8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_u8_i32 // GFX950: v_ashr_pk_u8_i32 v1, v2, v3, v4 op_sel:[0,0,0,1] ; encoding: [0x01,0x40,0x66,0xd2,0x02,0x07,0x12,0x04] v_ashr_pk_u8_i32 v2, s4, 4, v2 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_u8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_u8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_u8_i32 // GFX950: v_ashr_pk_u8_i32 v2, s4, 4, v2 ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x08,0x09,0x04] v_ashr_pk_u8_i32 v2, s4, v7, v8 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_u8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_u8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_u8_i32 // GFX950: v_ashr_pk_u8_i32 v2, s4, v7, v8 ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x0e,0x22,0x04] v_ashr_pk_u8_i32 v2, v4, 0, 1 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_u8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_u8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_u8_i32 // GFX950: v_ashr_pk_u8_i32 v2, v4, 0, 1 ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x01,0x05,0x02] v_ashr_pk_u8_i32 v2, v4, 3, s2 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_u8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_u8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_u8_i32 // GFX950: v_ashr_pk_u8_i32 v2, v4, 3, s2 ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x07,0x09,0x00] v_ashr_pk_u8_i32 v2, v4, v7, -2.0 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_ashr_pk_u8_i32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_ashr_pk_u8_i32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_ashr_pk_u8_i32 // GFX950: v_ashr_pk_u8_i32 v2, v4, v7, -2.0 ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x0f,0xd6,0x03] v_bitop3_b16 v5, v1, v2, s3 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_bitop3_b16 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_bitop3_b16 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_bitop3_b16 // GFX950: v_bitop3_b16 v5, v1, v2, s3 ; encoding: [0x05,0x00,0x33,0xd2,0x01,0x05,0x0e,0x00] v_bitop3_b16 v5, v1, v2, s3 bitop3:161 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_bitop3_b16 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_bitop3_b16 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_bitop3_b16 // GFX950: v_bitop3_b16 v5, v1, v2, s3 bitop3:0xa1 ; encoding: [0x05,0x04,0x33,0xd2,0x01,0x05,0x0e,0x30] v_bitop3_b32 v5, 0.5, m0, 0.5 bitop3:101 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_bitop3_b32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_bitop3_b32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_bitop3_b32 // GFX950: v_bitop3_b32 v5, 0.5, m0, 0.5 bitop3:0x65 ; encoding: [0x05,0x04,0x34,0xd2,0xf0,0xf8,0xc0,0xab] v_bitop3_b32 v5, m0, 0.5, m0 bitop3:5 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_bitop3_b32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_bitop3_b32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_bitop3_b32 // GFX950: v_bitop3_b32 v5, m0, 0.5, m0 bitop3:5 ; encoding: [0x05,0x00,0x34,0xd2,0x7c,0xe0,0xf1,0xa1] v_bitop3_b32 v5, v1, v2, s3 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_bitop3_b32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_bitop3_b32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_bitop3_b32 // GFX950: v_bitop3_b32 v5, v1, v2, s3 ; encoding: [0x05,0x00,0x34,0xd2,0x01,0x05,0x0e,0x00] v_bitop3_b32 v5, v1, v2, s3 bitop3:161 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_bitop3_b32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_bitop3_b32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_bitop3_b32 // GFX950: v_bitop3_b32 v5, v1, v2, s3 bitop3:0xa1 ; encoding: [0x05,0x04,0x34,0xd2,0x01,0x05,0x0e,0x30] v_cvt_pk_bf16_f32 v5, -1, exec_hi // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_cvt_pk_bf16_f32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_cvt_pk_bf16_f32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_cvt_pk_bf16_f32 // GFX950: v_cvt_pk_bf16_f32 v5, -1, exec_hi ; encoding: [0x05,0x00,0x68,0xd2,0xc1,0xfe,0x00,0x00] v_cvt_pk_bf16_f32 v5, 0.5, m0 mul:2 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_cvt_pk_bf16_f32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_cvt_pk_bf16_f32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_cvt_pk_bf16_f32 // GFX950: v_cvt_pk_bf16_f32 v5, 0.5, m0 mul:2 ; encoding: [0x05,0x00,0x68,0xd2,0xf0,0xf8,0x00,0x08] v_cvt_pk_bf16_f32 v5, m0, 0.5 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_cvt_pk_bf16_f32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_cvt_pk_bf16_f32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_cvt_pk_bf16_f32 // GFX950: v_cvt_pk_bf16_f32 v5, m0, 0.5 ; encoding: [0x05,0x00,0x68,0xd2,0x7c,0xe0,0x01,0x00] v_cvt_pk_bf16_f32 v5, v1, s2 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_cvt_pk_bf16_f32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_cvt_pk_bf16_f32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_cvt_pk_bf16_f32 // GFX950: v_cvt_pk_bf16_f32 v5, v1, s2 ; encoding: [0x05,0x00,0x68,0xd2,0x01,0x05,0x00,0x00] v_cvt_pk_bf16_f32 v5, v1, v2 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_cvt_pk_bf16_f32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_cvt_pk_bf16_f32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_cvt_pk_bf16_f32 // GFX950: v_cvt_pk_bf16_f32 v5, v1, v2 ; encoding: [0x05,0x00,0x68,0xd2,0x01,0x05,0x02,0x00] v_cvt_pk_bf16_f32 v5, v255, v255 // GFX12-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU (gfx1200): v_cvt_pk_bf16_f32 // GFX906-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU (gfx906): v_cvt_pk_bf16_f32 // GFX942-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU (gfx942): v_cvt_pk_bf16_f32 // GFX950: v_cvt_pk_bf16_f32 v5, v255, v255 ; encoding: [0x05,0x00,0x68,0xd2,0xff,0xff,0x03,0x00]