134
|
1 // RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefixes=GFX9 %s
|
121
|
2
|
|
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=fiji %s 2>&1 | FileCheck -check-prefixes=ERR-SICIVI %s
|
|
4 // RUN: not llvm-mc -arch=amdgcn -mcpu=bonaire %s 2>&1 | FileCheck -check-prefixes=ERR-SICIVI %s
|
|
5 // FIXME: pre-gfx9 errors should be more useful
|
|
6
|
|
7
|
|
8 v_add_u32 v1, v2, v3
|
134
|
9 // GFX9: v_add_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x68]
|
|
10 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
11
|
|
12 v_add_u32 v1, v2, s1
|
|
13 // GFX9: v_add_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x34,0xd1,0x02,0x03,0x00,0x00]
|
134
|
14 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
15
|
|
16 v_add_u32 v1, s1, v2
|
134
|
17 // GFX9: v_add_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x68]
|
|
18 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
19
|
|
20 v_add_u32 v1, 4.0, v2
|
134
|
21 // GFX9: v_add_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x68]
|
|
22 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
23
|
|
24 v_add_u32 v1, v2, 4.0
|
|
25 // GFX9: v_add_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x34,0xd1,0x02,0xed,0x01,0x00]
|
134
|
26 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
27
|
|
28 v_add_u32_e32 v1, v2, v3
|
|
29 // GFX9: v_add_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x68]
|
134
|
30 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
31
|
|
32 v_add_u32_e32 v1, s1, v3
|
|
33 // GFX9: v_add_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x68]
|
134
|
34 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
35
|
|
36
|
|
37
|
|
38 v_sub_u32 v1, v2, v3
|
134
|
39 // GFX9: v_sub_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6a]
|
|
40 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
41
|
|
42 v_sub_u32 v1, v2, s1
|
|
43 // GFX9: v_sub_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x35,0xd1,0x02,0x03,0x00,0x00]
|
134
|
44 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
45
|
|
46 v_sub_u32 v1, s1, v2
|
134
|
47 // GFX9: v_sub_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x6a]
|
|
48 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
49
|
|
50 v_sub_u32 v1, 4.0, v2
|
134
|
51 // GFX9: v_sub_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x6a]
|
|
52 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
53
|
|
54 v_sub_u32 v1, v2, 4.0
|
|
55 // GFX9: v_sub_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x35,0xd1,0x02,0xed,0x01,0x00]
|
134
|
56 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
57
|
|
58 v_sub_u32_e32 v1, v2, v3
|
|
59 // GFX9: v_sub_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6a]
|
134
|
60 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
61
|
|
62 v_sub_u32_e32 v1, s1, v3
|
|
63 // GFX9: v_sub_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x6a]
|
134
|
64 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
65
|
|
66
|
|
67
|
|
68 v_subrev_u32 v1, v2, v3
|
134
|
69 // GFX9: v_subrev_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6c]
|
|
70 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
71
|
|
72 v_subrev_u32 v1, v2, s1
|
|
73 // GFX9: v_subrev_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x36,0xd1,0x02,0x03,0x00,0x00]
|
134
|
74 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
75
|
|
76 v_subrev_u32 v1, s1, v2
|
134
|
77 // GFX9: v_subrev_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x6c]
|
|
78 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
79
|
|
80 v_subrev_u32 v1, 4.0, v2
|
134
|
81 // GFX9: v_subrev_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x6c]
|
|
82 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
83
|
|
84 v_subrev_u32 v1, v2, 4.0
|
|
85 // GFX9: v_subrev_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x36,0xd1,0x02,0xed,0x01,0x00]
|
134
|
86 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
87
|
|
88 v_subrev_u32_e32 v1, v2, v3
|
|
89 // GFX9: v_subrev_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6c]
|
134
|
90 // ERR-SICIVI: error: instruction not supported on this GPU
|
121
|
91
|
|
92 v_subrev_u32_e32 v1, s1, v3
|
|
93 // GFX9: v_subrev_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x6c]
|
134
|
94 // ERR-SICIVI: error: instruction not supported on this GPU
|