|
1 | | -// RUN: llvm-mc -arch=amdgcn -mcpu=gfx950 -show-encoding %s | FileCheck --check-prefix=GFX950 %s |
2 | | -// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx940 %s 2>&1 | FileCheck -check-prefix=GFX940-ERR --strict-whitespace %s |
| 1 | +// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx906 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX906-ERR %s |
| 2 | +// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx940 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX940-ERR %s |
| 3 | +// RUN: llvm-mc -arch=amdgcn -mcpu=gfx950 -show-encoding < %s | FileCheck --check-prefix=GFX950 %s |
| 4 | +// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1200 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX12-ERR %s |
3 | 5 |
|
4 | 6 | v_cvt_pk_bf16_f32 v5, v1, v2 |
| 7 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 8 | +// GFX940-ERR: error: instruction not supported on this GPU |
5 | 9 | // GFX950: v_cvt_pk_bf16_f32 v5, v1, v2 ; encoding: [0x05,0x00,0x68,0xd2,0x01,0x05,0x02,0x00] |
6 | | -// GFX940-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU |
| 10 | +// GFX12-ERR: error: instruction not supported on this GPU |
7 | 11 |
|
8 | 12 | v_cvt_pk_bf16_f32 v5, v255, v255 |
| 13 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 14 | +// GFX940-ERR: error: instruction not supported on this GPU |
9 | 15 | // GFX950: v_cvt_pk_bf16_f32 v5, v255, v255 ; encoding: [0x05,0x00,0x68,0xd2,0xff,0xff,0x03,0x00] |
10 | | -// GFX940-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU |
| 16 | +// GFX12-ERR: error: instruction not supported on this GPU |
11 | 17 |
|
12 | 18 | v_cvt_pk_bf16_f32 v5, v1, s2 |
| 19 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 20 | +// GFX940-ERR: error: instruction not supported on this GPU |
13 | 21 | // GFX950: v_cvt_pk_bf16_f32 v5, v1, s2 ; encoding: [0x05,0x00,0x68,0xd2,0x01,0x05,0x00,0x00] |
14 | | -// GFX940-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU |
| 22 | +// GFX12-ERR: error: instruction not supported on this GPU |
15 | 23 |
|
16 | 24 | v_cvt_pk_bf16_f32 v5, m0, 0.5 |
| 25 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 26 | +// GFX940-ERR: error: instruction not supported on this GPU |
17 | 27 | // GFX950: v_cvt_pk_bf16_f32 v5, m0, 0.5 ; encoding: [0x05,0x00,0x68,0xd2,0x7c,0xe0,0x01,0x00] |
18 | | -// GFX940-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU |
| 28 | +// GFX12-ERR: error: instruction not supported on this GPU |
19 | 29 |
|
20 | 30 | v_cvt_pk_bf16_f32 v5, -1, exec_hi |
| 31 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 32 | +// GFX940-ERR: error: instruction not supported on this GPU |
21 | 33 | // GFX950: v_cvt_pk_bf16_f32 v5, -1, exec_hi ; encoding: [0x05,0x00,0x68,0xd2,0xc1,0xfe,0x00,0x00] |
22 | | -// GFX940-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU |
| 34 | +// GFX12-ERR: error: instruction not supported on this GPU |
23 | 35 |
|
24 | 36 | v_cvt_pk_bf16_f32 v5, 0.5, m0 mul:2 |
| 37 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 38 | +// GFX940-ERR: error: instruction not supported on this GPU |
25 | 39 | // GFX950: v_cvt_pk_bf16_f32 v5, 0.5, m0 mul:2 ; encoding: [0x05,0x00,0x68,0xd2,0xf0,0xf8,0x00,0x08] |
26 | | -// GFX940-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU |
| 40 | +// GFX12-ERR: error: instruction not supported on this GPU |
| 41 | + |
| 42 | +v_bitop3_b32 v5, v1, v2, s3 |
| 43 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 44 | +// GFX940-ERR: error: instruction not supported on this GPU |
| 45 | +// GFX950: v_bitop3_b32 v5, v1, v2, s3 ; encoding: [0x05,0x00,0x34,0xd2,0x01,0x05,0x0e,0x00] |
| 46 | +// GFX12-ERR: error: instruction not supported on this GPU |
| 47 | + |
| 48 | +v_bitop3_b32 v5, v1, v2, s3 bitop3:161 |
| 49 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 50 | +// GFX940-ERR: error: instruction not supported on this GPU |
| 51 | +// GFX950: v_bitop3_b32 v5, v1, v2, s3 bitop3:0xa1 ; encoding: [0x05,0x04,0x34,0xd2,0x01,0x05,0x0e,0x30] |
| 52 | +// GFX12-ERR: error: instruction not supported on this GPU |
| 53 | + |
| 54 | +v_bitop3_b32 v5, m0, 0.5, m0 bitop3:5 |
| 55 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 56 | +// GFX940-ERR: error: instruction not supported on this GPU |
| 57 | +// GFX950: v_bitop3_b32 v5, m0, 0.5, m0 bitop3:5 ; encoding: [0x05,0x00,0x34,0xd2,0x7c,0xe0,0xf1,0xa1] |
| 58 | +// GFX12-ERR: error: instruction not supported on this GPU |
| 59 | + |
| 60 | +v_bitop3_b32 v5, 0.5, m0, 0.5 bitop3:101 |
| 61 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 62 | +// GFX940-ERR: error: instruction not supported on this GPU |
| 63 | +// GFX950: v_bitop3_b32 v5, 0.5, m0, 0.5 bitop3:0x65 ; encoding: [0x05,0x04,0x34,0xd2,0xf0,0xf8,0xc0,0xab] |
| 64 | +// GFX12-ERR: error: instruction not supported on this GPU |
| 65 | + |
| 66 | +v_bitop3_b16 v5, v1, v2, s3 |
| 67 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 68 | +// GFX940-ERR: error: instruction not supported on this GPU |
| 69 | +// GFX950: v_bitop3_b16 v5, v1, v2, s3 ; encoding: [0x05,0x00,0x33,0xd2,0x01,0x05,0x0e,0x00] |
| 70 | +// GFX12-ERR: error: instruction not supported on this GPU |
| 71 | + |
| 72 | +v_bitop3_b16 v5, v1, v2, s3 bitop3:161 |
| 73 | +// GFX906-ERR: error: instruction not supported on this GPU |
| 74 | +// GFX940-ERR: error: instruction not supported on this GPU |
| 75 | +// GFX950: v_bitop3_b16 v5, v1, v2, s3 bitop3:0xa1 ; encoding: [0x05,0x04,0x33,0xd2,0x01,0x05,0x0e,0x30] |
| 76 | +// GFX12-ERR: error: instruction not supported on this GPU |
0 commit comments