1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
| // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx601 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX6-7,GFX6-8,GFX6-9 %s
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx701 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX6-7,GFX6-8,GFX6-9 %s
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx801 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX6-8,GFX6-9 %s
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX6-9 %s
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -mattr=+WavefrontSize32,-WavefrontSize64 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX10 %s
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -mattr=-WavefrontSize32,+WavefrontSize64 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX10 %s
//===----------------------------------------------------------------------===//
// ENC_DS.
//===----------------------------------------------------------------------===//
// GFX9+.
ds_write_b8_d16_hi v1, v2
// GFX6-8: error: instruction not supported on this GPU
ds_write_b16_d16_hi v1, v2
// GFX6-8: error: instruction not supported on this GPU
ds_read_u8_d16 v5, v1
// GFX6-8: error: instruction not supported on this GPU
ds_read_u8_d16_hi v5, v1
// GFX6-8: error: instruction not supported on this GPU
ds_read_i8_d16 v5, v1
// GFX6-8: error: instruction not supported on this GPU
ds_read_i8_d16_hi v5, v1
// GFX6-8: error: instruction not supported on this GPU
ds_read_u16_d16 v5, v1
// GFX6-8: error: instruction not supported on this GPU
ds_read_u16_d16_hi v5, v1
// GFX6-8: error: instruction not supported on this GPU
ds_write_addtid_b32 v5
// GFX6-8: error: instruction not supported on this GPU
ds_read_addtid_b32 v5
// GFX6-8: error: instruction not supported on this GPU
// GFX8+.
ds_add_src2_f32 v1
// GFX6-7: error: instruction not supported on this GPU
ds_add_f32 v0, v1
// GFX6-7: error: instruction not supported on this GPU
ds_add_rtn_f32 v0, v1, v2
// GFX6-7: error: instruction not supported on this GPU
ds_permute_b32 v0, v1, v2
// GFX6-7: error: instruction not supported on this GPU
ds_bpermute_b32 v0, v1, v2
// GFX6-7: error: instruction not supported on this GPU
//===----------------------------------------------------------------------===//
// ENC_SOP1.
//===----------------------------------------------------------------------===//
// GFX10+.
s_and_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_or_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_xor_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_andn2_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_orn2_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_nand_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_nor_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_xnor_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_andn1_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_orn1_saveexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_andn1_wrexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_andn2_wrexec_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
s_movrelsd_2_b32 s0, s1
// GFX6-9: error: instruction not supported on this GPU
// GFX9+.
s_andn1_saveexec_b64 s[0:1], s[2:3]
// GFX6-8: error: instruction not supported on this GPU
s_orn1_saveexec_b64 s[0:1], s[2:3]
// GFX6-8: error: instruction not supported on this GPU
s_andn1_wrexec_b64 s[0:1], s[2:3]
// GFX6-8: error: instruction not supported on this GPU
s_andn2_wrexec_b64 s[0:1], s[2:3]
// GFX6-8: error: instruction not supported on this GPU
s_bitreplicate_b64_b32 s[0:1], s2
// GFX6-8: error: instruction not supported on this GPU
// GFX8, GFX9.
s_set_gpr_idx_idx s0
// GFX10: error: instruction not supported on this GPU
// GFX6, GFX7, GFX8, GFX9.
s_cbranch_join s0
// GFX10: error: instruction not supported on this GPU
s_mov_regrd_b32 s0, s1
// GFX10: error: instruction not supported on this GPU
//===----------------------------------------------------------------------===//
// ENC_SOP2.
//===----------------------------------------------------------------------===//
// GFX9+.
s_lshl1_add_u32 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
s_lshl2_add_u32 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
s_lshl3_add_u32 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
s_lshl4_add_u32 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
s_mul_hi_u32 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
s_mul_hi_i32 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
s_pack_ll_b32_b16 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
s_pack_lh_b32_b16 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
s_pack_hh_b32_b16 s0, s1, s2
// GFX6-8: error: instruction not supported on this GPU
// GFX8, GFX9.
s_rfe_restore_b64 s[0:1], s2
// GFX10: error: instruction not supported on this GPU
// GFX6, GFX7, GFX8, GFX9.
s_cbranch_g_fork s[0:1], s[2:3]
// GFX10: error: instruction not supported on this GPU
//===----------------------------------------------------------------------===//
// ENC_SOPC.
//===----------------------------------------------------------------------===//
// GFX8+.
s_cmp_eq_u64 s[0:1], s[2:3]
// GFX6-7: error: instruction not supported on this GPU
s_cmp_lg_u64 s[0:1], s[2:3]
// GFX6-7: error: instruction not supported on this GPU
// GFX6, GFX7, GFX8, GFX9.
s_setvskip s0, s1
// GFX10: error: instruction not supported on this GPU
//===----------------------------------------------------------------------===//
// ENC_SOPK.
//===----------------------------------------------------------------------===//
// GFX10+.
s_version 0x1234
// GFX6-9: error: instruction not supported on this GPU
s_waitcnt_vscnt s0, 0x1234
// GFX6-9: error: instruction not supported on this GPU
s_waitcnt_vmcnt s0, 0x1234
// GFX6-9: error: instruction not supported on this GPU
s_waitcnt_expcnt s0, 0x1234
// GFX6-9: error: instruction not supported on this GPU
s_waitcnt_lgkmcnt s0, 0x1234
// GFX6-9: error: instruction not supported on this GPU
s_subvector_loop_begin s0, 0x1234
// GFX6-9: error: instruction not supported on this GPU
s_subvector_loop_end s0, 0x1234
// GFX6-9: error: instruction not supported on this GPU
// GFX9+.
s_call_b64 s[0:1], 0x1234
// GFX6-8: error: instruction not supported on this GPU
// GFX6, GFX7, GFX8, GFX9.
s_cbranch_i_fork s[0:1], 0x1234
// GFX10: error: instruction not supported on this GPU
//===----------------------------------------------------------------------===//
// ENC_SOPP.
//===----------------------------------------------------------------------===//
// GFX10+.
s_code_end
// GFX6-9: error: instruction not supported on this GPU
s_inst_prefetch 0x0
// GFX6-9: error: instruction not supported on this GPU
s_clause 0x0
// GFX6-9: error: instruction not supported on this GPU
s_round_mode 0x0
// GFX6-9: error: instruction not supported on this GPU
s_denorm_mode 0x0
// GFX6-9: error: instruction not supported on this GPU
s_ttracedata_imm 0x0
// GFX6-9: error: instruction not supported on this GPU
// GFX9+.
s_endpgm_ordered_ps_done
// GFX6-8: error: instruction not supported on this GPU
// GFX8+.
s_wakeup
// GFX6-7: error: instruction not supported on this GPU
s_endpgm_saved
// GFX6-7: error: instruction not supported on this GPU
//===----------------------------------------------------------------------===//
// DPP8.
//===----------------------------------------------------------------------===//
v_mov_b32_dpp v5, v1 dpp8:[0,1,2,3,4,5,6,7]
// GFX6-9: error: not a valid operand
|