1// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefixes=GFX9,GCN %s
2// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 2>&1 %s | FileCheck -check-prefix=GFX9-ERR --implicit-check-not=error: %s
3// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga 2>&1 %s | FileCheck -check-prefix=VI-ERR --implicit-check-not=error: %s
4
5// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck --check-prefix=GFX10 %s
6// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefix=GFX10-ERR --implicit-check-not=error: %s
7
8global_load_ubyte v1, v[3:4], off
9// GFX10: encoding: [0x00,0x80,0x20,0xdc,0x03,0x00,0x7d,0x01]
10// GFX9: global_load_ubyte v1, v[3:4], off ; encoding: [0x00,0x80,0x40,0xdc,0x03,0x00,0x7f,0x01]
11// VI-ERR: error: instruction not supported on this GPU
12
13global_load_ubyte v1, v[3:4], off dlc
14// GFX10: encoding: [0x00,0x90,0x20,0xdc,0x03,0x00,0x7d,0x01]
15// GFX9-ERR: error: failed parsing operand
16// VI-ERR: error: instruction not supported on this GPU
17
18global_load_sbyte v1, v[3:4], off
19// GFX10: encoding: [0x00,0x80,0x24,0xdc,0x03,0x00,0x7d,0x01]
20// GFX9: global_load_sbyte v1, v[3:4], off ; encoding: [0x00,0x80,0x44,0xdc,0x03,0x00,0x7f,0x01]
21// VI-ERR: error: instruction not supported on this GPU
22
23global_load_sbyte v1, v[3:4], off dlc
24// GFX10: encoding: [0x00,0x90,0x24,0xdc,0x03,0x00,0x7d,0x01]
25// GFX9-ERR: error: failed parsing operand
26// VI-ERR: error: instruction not supported on this GPU
27
28global_load_ushort v1, v[3:4], off
29// GFX10: encoding: [0x00,0x80,0x28,0xdc,0x03,0x00,0x7d,0x01]
30// GFX9: global_load_ushort v1, v[3:4], off ; encoding: [0x00,0x80,0x48,0xdc,0x03,0x00,0x7f,0x01]
31// VI-ERR: error: instruction not supported on this GPU
32
33global_load_ushort v1, v[3:4], off dlc
34// GFX10: encoding: [0x00,0x90,0x28,0xdc,0x03,0x00,0x7d,0x01]
35// GFX9-ERR: error: failed parsing operand
36// VI-ERR: error: instruction not supported on this GPU
37
38global_load_sshort v1, v[3:4], off
39// GFX10: encoding: [0x00,0x80,0x2c,0xdc,0x03,0x00,0x7d,0x01]
40// GFX9: global_load_sshort v1, v[3:4], off ; encoding: [0x00,0x80,0x4c,0xdc,0x03,0x00,0x7f,0x01]
41// VI-ERR: error: instruction not supported on this GPU
42
43global_load_sshort v1, v[3:4], off dlc
44// GFX10: encoding: [0x00,0x90,0x2c,0xdc,0x03,0x00,0x7d,0x01]
45// GFX9-ERR: error: failed parsing operand
46// VI-ERR: error: instruction not supported on this GPU
47
48global_load_dword v1, v[3:4], off
49// GFX10: encoding: [0x00,0x80,0x30,0xdc,0x03,0x00,0x7d,0x01]
50// GFX9: global_load_dword v1, v[3:4], off ; encoding: [0x00,0x80,0x50,0xdc,0x03,0x00,0x7f,0x01]
51// VI-ERR: error: instruction not supported on this GPU
52
53global_load_dword v1, v[3:4], off dlc
54// GFX10: encoding: [0x00,0x90,0x30,0xdc,0x03,0x00,0x7d,0x01]
55// GFX9-ERR: error: failed parsing operand
56// VI-ERR: error: instruction not supported on this GPU
57
58global_load_dwordx2 v[1:2], v[3:4], off
59// GFX10: encoding: [0x00,0x80,0x34,0xdc,0x03,0x00,0x7d,0x01]
60// GFX9: global_load_dwordx2 v[1:2], v[3:4], off ; encoding: [0x00,0x80,0x54,0xdc,0x03,0x00,0x7f,0x01]
61// VI-ERR: error: instruction not supported on this GPU
62
63global_load_dwordx2 v[1:2], v[3:4], off dlc
64// GFX10: encoding: [0x00,0x90,0x34,0xdc,0x03,0x00,0x7d,0x01]
65// GFX9-ERR: error: failed parsing operand
66// VI-ERR: error: instruction not supported on this GPU
67
68global_load_dwordx3 v[1:3], v[3:4], off
69// GFX10: encoding: [0x00,0x80,0x3c,0xdc,0x03,0x00,0x7d,0x01]
70// GFX9: global_load_dwordx3 v[1:3], v[3:4], off ; encoding: [0x00,0x80,0x58,0xdc,0x03,0x00,0x7f,0x01]
71// VI-ERR: error: instruction not supported on this GPU
72
73global_load_dwordx3 v[1:3], v[3:4], off dlc
74// GFX10: encoding: [0x00,0x90,0x3c,0xdc,0x03,0x00,0x7d,0x01]
75// GFX9-ERR: error: failed parsing operand
76// VI-ERR: error: instruction not supported on this GPU
77
78global_load_dwordx4 v[1:4], v[3:4], off
79// GFX10: encoding: [0x00,0x80,0x38,0xdc,0x03,0x00,0x7d,0x01]
80// GFX9: global_load_dwordx4 v[1:4], v[3:4], off   ; encoding: [0x00,0x80,0x5c,0xdc,0x03,0x00,0x7f,0x01]
81// VI-ERR: error: instruction not supported on this GPU
82
83global_load_dwordx4 v[1:4], v[3:4], off dlc
84// GFX10: encoding: [0x00,0x90,0x38,0xdc,0x03,0x00,0x7d,0x01]
85// GFX9-ERR: error: failed parsing operand
86// VI-ERR: error: instruction not supported on this GPU
87
88global_load_dword v1, v[3:4], off offset:0
89// GFX10: encoding: [0x00,0x80,0x30,0xdc,0x03,0x00,0x7d,0x01]
90// GFX9: global_load_dword v1, v[3:4], off    ; encoding: [0x00,0x80,0x50,0xdc,0x03,0x00,0x7f,0x01]
91// VI-ERR: :1: error: instruction not supported on this GPU
92
93global_load_dword v1, v[3:4], off offset:4095
94// GFX10-ERR: :35: error: expected a 12-bit signed offset
95// GFX9: global_load_dword v1, v[3:4], off offset:4095 ; encoding: [0xff,0x8f,0x50,0xdc,0x03,0x00,0x7f,0x01]
96// VI-ERR: :1: error: instruction not supported on this GPU
97
98global_load_dword v1, v[3:4], off offset:-1
99// GFX10: encoding: [0xff,0x8f,0x30,0xdc,0x03,0x00,0x7d,0x01]
100// GFX9: global_load_dword v1, v[3:4], off offset:-1 ; encoding: [0xff,0x9f,0x50,0xdc,0x03,0x00,0x7f,0x01]
101// VI-ERR: :1: error: instruction not supported on this GPU
102
103global_load_dword v1, v[3:4], off offset:-4096
104// GFX10-ERR: :35: error: expected a 12-bit signed offset
105// GFX9: global_load_dword v1, v[3:4], off offset:-4096 ; encoding: [0x00,0x90,0x50,0xdc,0x03,0x00,0x7f,0x01]
106// VI-ERR: :1: error: instruction not supported on this GPU
107
108global_load_dword v1, v[3:4], off offset:4096
109// GFX10-ERR: :35: error: expected a 12-bit signed offset
110// GFX9-ERR: :35: error: expected a 13-bit signed offset
111// VI-ERR: :1: error: instruction not supported on this GPU
112
113global_load_dword v1, v[3:4] off, offset:-4097
114// GFX10-ERR: :35: error: expected a 12-bit signed offset
115// GFX9-ERR: :35: error: expected a 13-bit signed offset
116// VI-ERR: :1: error: instruction not supported on this GPU
117
118global_store_byte v[3:4], v1, off
119// GFX10: encoding: [0x00,0x80,0x60,0xdc,0x03,0x01,0x7d,0x00]
120// GFX9: global_store_byte v[3:4], v1, off ; encoding: [0x00,0x80,0x60,0xdc,0x03,0x01,0x7f,0x00]
121// VI-ERR: error: instruction not supported on this GPU
122
123global_store_byte v[3:4], v1, off dlc
124// GFX10: encoding: [0x00,0x90,0x60,0xdc,0x03,0x01,0x7d,0x00]
125// GFX9-ERR: error: failed parsing operand
126// VI-ERR: error: instruction not supported on this GPU
127
128global_store_short v[3:4], v1, off
129// GFX10: encoding: [0x00,0x80,0x68,0xdc,0x03,0x01,0x7d,0x00]
130// GFX9: global_store_short v[3:4], v1, off ; encoding: [0x00,0x80,0x68,0xdc,0x03,0x01,0x7f,0x00]
131// VI-ERR: error: instruction not supported on this GPU
132
133global_store_short v[3:4], v1, off dlc
134// GFX10: encoding: [0x00,0x90,0x68,0xdc,0x03,0x01,0x7d,0x00]
135// GFX9-ERR: error: failed parsing operand
136// VI-ERR: error: instruction not supported on this GPU
137
138global_store_dword v[3:4], v1, off
139// GFX10: encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7d,0x00]
140// GFX9: global_store_dword v[3:4], v1, off ; encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7f,0x00]
141// VI-ERR: error: instruction not supported on this GPU
142
143global_store_dword v[3:4], v1, off dlc
144// GFX10: encoding: [0x00,0x90,0x70,0xdc,0x03,0x01,0x7d,0x00]
145// GFX9-ERR: error: failed parsing operand
146// VI-ERR: error: instruction not supported on this GPU
147
148global_store_dwordx2 v[3:4], v[1:2], off
149// GFX10: encoding: [0x00,0x80,0x74,0xdc,0x03,0x01,0x7d,0x00]
150// GFX9: global_store_dwordx2 v[3:4], v[1:2], off ; encoding: [0x00,0x80,0x74,0xdc,0x03,0x01,0x7f,0x00]
151// VI-ERR: error: instruction not supported on this GPU
152
153global_store_dwordx2 v[3:4], v[1:2], off dlc
154// GFX10: encoding: [0x00,0x90,0x74,0xdc,0x03,0x01,0x7d,0x00]
155// GFX9-ERR: error: failed parsing operand
156// VI-ERR: error: instruction not supported on this GPU
157
158global_store_dwordx3 v[3:4], v[1:3], off
159// GFX10: encoding: [0x00,0x80,0x7c,0xdc,0x03,0x01,0x7d,0x00]
160// GFX9: global_store_dwordx3 v[3:4], v[1:3], off ; encoding: [0x00,0x80,0x78,0xdc,0x03,0x01,0x7f,0x00]
161// VI-ERR: error: instruction not supported on this GPU
162
163global_store_dwordx3 v[3:4], v[1:3], off dlc
164// GFX10: encoding: [0x00,0x90,0x7c,0xdc,0x03,0x01,0x7d,0x00]
165// GFX9-ERR: error: failed parsing operand
166// VI-ERR: error: instruction not supported on this GPU
167
168global_store_dwordx4 v[3:4], v[1:4], off
169// GFX10: encoding: [0x00,0x80,0x78,0xdc,0x03,0x01,0x7d,0x00]
170// GFX9: global_store_dwordx4 v[3:4], v[1:4], off ; encoding: [0x00,0x80,0x7c,0xdc,0x03,0x01,0x7f,0x00]
171// VI-ERR: error: instruction not supported on this GPU
172
173global_store_dwordx4 v[3:4], v[1:4], off dlc
174// GFX10: encoding: [0x00,0x90,0x78,0xdc,0x03,0x01,0x7d,0x00]
175// GFX9-ERR: error: failed parsing operand
176// VI-ERR: error: instruction not supported on this GPU
177
178global_store_dword v[3:4], v1, off offset:12
179// GFX10: encoding: [0x0c,0x80,0x70,0xdc,0x03,0x01,0x7d,0x00]
180// GFX9: global_store_dword v[3:4], v1, off offset:12 ; encoding: [0x0c,0x80,0x70,0xdc,0x03,0x01,0x7f,0x00]
181// VI-ERR: :1: error: instruction not supported on this GPU
182
183global_load_dword v1, v3, s[2:3]
184// GFX10: encoding: [0x00,0x80,0x30,0xdc,0x03,0x00,0x02,0x01]
185// GFX9: global_load_dword v1, v3, s[2:3] ; encoding: [0x00,0x80,0x50,0xdc,0x03,0x00,0x02,0x01]
186// VI-ERR: error: instruction not supported on this GPU
187
188global_load_dword v1, v3, s[2:3] offset:24
189// GFX10: encoding: [0x18,0x80,0x30,0xdc,0x03,0x00,0x02,0x01]
190// GFX9: global_load_dword v1, v3, s[2:3] offset:24 ; encoding: [0x18,0x80,0x50,0xdc,0x03,0x00,0x02,0x01]
191// VI-ERR: :1: error: instruction not supported on this GPU
192
193global_load_dword v1, v3, s[2:3] offset:-8
194// GFX10: encoding: [0xf8,0x8f,0x30,0xdc,0x03,0x00,0x02,0x01]
195// GFX9: global_load_dword v1, v3, s[2:3] offset:-8 ; encoding: [0xf8,0x9f,0x50,0xdc,0x03,0x00,0x02,0x01]
196// VI-ERR: :1: error: instruction not supported on this GPU
197
198global_store_dword v3, v1, s[2:3]
199// GFX10: encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]
200// GFX9: global_store_dword v3, v1, s[2:3] ; encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]
201// VI-ERR: error: instruction not supported on this GPU
202
203global_store_dword v3, v1, s[2:3] offset:24
204// GFX10: encoding: [0x18,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]
205// GFX9: global_store_dword v3, v1, s[2:3] offset:24 ; encoding: [0x18,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]
206// VI-ERR: :1: error: instruction not supported on this GPU
207
208global_store_dword v3, v1, s[2:3] offset:-8
209// GFX10: encoding: [0xf8,0x8f,0x70,0xdc,0x03,0x01,0x02,0x00]
210// GFX9: global_store_dword v3, v1, s[2:3] offset:-8 ; encoding: [0xf8,0x9f,0x70,0xdc,0x03,0x01,0x02,0x00]
211// VI-ERR: :1: error: instruction not supported on this GPU
212
213// XXX: Is this valid?
214global_store_dword v3, v1, exec
215// GFX10: encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7e,0x00]
216// GFX9: global_store_dword v3, v1, exec ; encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7e,0x00]
217// VI-ERR: error: instruction not supported on this GPU
218
219global_load_dword v1, v[3:4], s2
220// GFX10-ERR: error: invalid operand for instruction
221// GFX9-ERR: :31: error: invalid operand for instruction
222// VI-ERR: :1: error: instruction not supported on this GPU
223
224global_load_dword v1, v[3:4], exec_hi
225// GFX10-ERR: error: invalid operand for instruction
226// GFX9-ERR: :31: error: invalid operand for instruction
227// VI-ERR: :1: error: instruction not supported on this GPU
228
229global_atomic_cmpswap v[3:4], v[5:6], off
230// GFX10: encoding: [0x00,0x80,0xc4,0xdc,0x03,0x05,0x7d,0x00]
231// GFX9: global_atomic_cmpswap v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x04,0xdd,0x03,0x05,0x7f,0x00]
232// VI-ERR: error: instruction not supported on this GPU
233
234global_atomic_cmpswap v1, v[3:4], v[5:6], off glc
235// GFX10: encoding: [0x00,0x80,0xc5,0xdc,0x03,0x05,0x7d,0x01]
236// GFX9: global_atomic_cmpswap v1, v[3:4], v[5:6], off glc ; encoding: [0x00,0x80,0x05,0xdd,0x03,0x05,0x7f,0x01]
237// VI-ERR: error: instruction not supported on this GPU
238
239global_atomic_cmpswap v1, v3, v[5:6], s[2:3] glc
240// GFX10: encoding: [0x00,0x80,0xc5,0xdc,0x03,0x05,0x02,0x01]
241// GFX9: global_atomic_cmpswap v1, v3, v[5:6], s[2:3] glc ; encoding: [0x00,0x80,0x05,0xdd,0x03,0x05,0x02,0x01]
242// VI-ERR: error: instruction not supported on this GPU
243
244global_atomic_cmpswap v1, v[2:3], v[4:5], off offset:-1 glc
245// GCN: global_atomic_cmpswap v1, v[2:3], v[4:5], off offset:-1 glc ; encoding: [0xff,0x9f,0x05,0xdd,0x02,0x04,0x7f,0x01]
246// GFX10: global_atomic_cmpswap v1, v[2:3], v[4:5], off offset:-1 glc ; encoding: [0xff,0x8f,0xc5,0xdc,0x02,0x04,0x7d,0x01]
247// VI-ERR: error: instruction not supported on this GPU
248
249global_atomic_cmpswap v1, v[2:3], v[254:255], off offset:-1 glc
250// GCN: global_atomic_cmpswap v1, v[2:3], v[254:255], off offset:-1 glc ; encoding: [0xff,0x9f,0x05,0xdd,0x02,0xfe,0x7f,0x01]
251// GFX10: global_atomic_cmpswap v1, v[2:3], v[254:255], off offset:-1 glc ; encoding: [0xff,0x8f,0xc5,0xdc,0x02,0xfe,0x7d,0x01]
252// VI-ERR: error: instruction not supported on this GPU
253
254global_atomic_cmpswap v1, v2, v[4:5], s[2:3] offset:-1 glc
255// GCN: global_atomic_cmpswap v1, v2, v[4:5], s[2:3] offset:-1 glc ; encoding: [0xff,0x9f,0x05,0xdd,0x02,0x04,0x02,0x01]
256// GFX10: global_atomic_cmpswap v1, v2, v[4:5], s[2:3] offset:-1 glc ; encoding: [0xff,0x8f,0xc5,0xdc,0x02,0x04,0x02,0x01]
257// VI-ERR: error: instruction not supported on this GPU
258
259global_atomic_cmpswap v1, v[2:3], v[4:5], off glc
260// GCN: global_atomic_cmpswap v1, v[2:3], v[4:5], off glc ; encoding: [0x00,0x80,0x05,0xdd,0x02,0x04,0x7f,0x01]
261// GFX10: global_atomic_cmpswap v1, v[2:3], v[4:5], off glc ; encoding: [0x00,0x80,0xc5,0xdc,0x02,0x04,0x7d,0x01]
262// VI-ERR: error: instruction not supported on this GPU
263
264global_atomic_cmpswap_x2 v[5:6], v[7:10], off
265// GFX10: encoding: [0x00,0x80,0x44,0xdd,0x05,0x07,0x7d,0x00]
266// GFX9: global_atomic_cmpswap_x2 v[5:6], v[7:10], off ; encoding: [0x00,0x80,0x84,0xdd,0x05,0x07,0x7f,0x00]
267// VI-ERR: error: instruction not supported on this GPU
268
269global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc
270// GFX10: encoding: [0x00,0x80,0x45,0xdd,0x05,0x07,0x7d,0x01]
271// GFX9: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc ; encoding: [0x00,0x80,0x85,0xdd,0x05,0x07,0x7f,0x01]
272// VI-ERR: error: instruction not supported on this GPU
273
274global_atomic_cmpswap_x2 v[1:2], v5, v[7:10], s[2:3] glc
275// GFX10: encoding: [0x00,0x80,0x45,0xdd,0x05,0x07,0x02,0x01]
276// GFX9: global_atomic_cmpswap_x2 v[1:2], v5, v[7:10], s[2:3] glc ; encoding: [0x00,0x80,0x85,0xdd,0x05,0x07,0x02,0x01]
277// VI-ERR: error: instruction not supported on this GPU
278
279global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-1 glc
280// GCN: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-1 glc ; encoding: [0xff,0x9f,0x85,0xdd,0x05,0x07,0x7f,0x01]
281// GFX10: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-1 glc ; encoding: [0xff,0x8f,0x45,0xdd,0x05,0x07,0x7d,0x01]
282// VI-ERR: error: instruction not supported on this GPU
283
284global_atomic_cmpswap_x2 v[1:2], v[5:6], v[252:255], off offset:-1 glc
285// GCN: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[252:255], off offset:-1 glc ; encoding: [0xff,0x9f,0x85,0xdd,0x05,0xfc,0x7f,0x01]
286// GFX10: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[252:255], off offset:-1 glc ; encoding: [0xff,0x8f,0x45,0xdd,0x05,0xfc,0x7d,0x01]
287// VI-ERR: error: instruction not supported on this GPU
288
289global_atomic_cmpswap_x2 v[1:2], v5, v[252:255], s[2:3] offset:-1 glc
290// GCN: global_atomic_cmpswap_x2 v[1:2], v5, v[252:255], s[2:3] offset:-1 glc ; encoding: [0xff,0x9f,0x85,0xdd,0x05,0xfc,0x02,0x01]
291// GFX10: global_atomic_cmpswap_x2 v[1:2], v5, v[252:255], s[2:3] offset:-1 glc ; encoding: [0xff,0x8f,0x45,0xdd,0x05,0xfc,0x02,0x01]
292// VI-ERR: error: instruction not supported on this GPU
293
294global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc
295// GCN: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc ; encoding: [0x00,0x80,0x85,0xdd,0x05,0x07,0x7f,0x01]
296// GFX10: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc ; encoding: [0x00,0x80,0x45,0xdd,0x05,0x07,0x7d,0x01]
297// VI-ERR: error: instruction not supported on this GPU
298
299global_atomic_swap v[3:4], v5, off
300// GFX10: encoding: [0x00,0x80,0xc0,0xdc,0x03,0x05,0x7d,0x00]
301// GFX9: global_atomic_swap v[3:4], v5, off   ; encoding: [0x00,0x80,0x00,0xdd,0x03,0x05,0x7f,0x00]
302// VI-ERR: error: instruction not supported on this GPU
303
304global_atomic_swap_x2 v[3:4], v[5:6], off
305// GFX10: encoding: [0x00,0x80,0x40,0xdd,0x03,0x05,0x7d,0x00]
306// GFX9: global_atomic_swap_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x80,0xdd,0x03,0x05,0x7f,0x00]
307// VI-ERR: error: instruction not supported on this GPU
308
309global_atomic_add v[3:4], v5, off
310// GFX10: encoding: [0x00,0x80,0xc8,0xdc,0x03,0x05,0x7d,0x00]
311// GFX9: global_atomic_add v[3:4], v5, off   ; encoding: [0x00,0x80,0x08,0xdd,0x03,0x05,0x7f,0x00]
312// VI-ERR: error: instruction not supported on this GPU
313
314global_atomic_sub v[3:4], v5, off
315// GFX10: encoding: [0x00,0x80,0xcc,0xdc,0x03,0x05,0x7d,0x00]
316// GFX9: global_atomic_sub v[3:4], v5, off    ; encoding: [0x00,0x80,0x0c,0xdd,0x03,0x05,0x7f,0x00]
317// VI-ERR: error: instruction not supported on this GPU
318
319global_atomic_smin v[3:4], v5, off
320// GFX10: encoding: [0x00,0x80,0xd4,0xdc,0x03,0x05,0x7d,0x00]
321// GFX9: global_atomic_smin v[3:4], v5, off   ; encoding: [0x00,0x80,0x10,0xdd,0x03,0x05,0x7f,0x00]
322// VI-ERR: error: instruction not supported on this GPU
323
324global_atomic_umin v[3:4], v5, off
325// GFX10: encoding: [0x00,0x80,0xd8,0xdc,0x03,0x05,0x7d,0x00]
326// GFX9: global_atomic_umin v[3:4], v5, off   ; encoding: [0x00,0x80,0x14,0xdd,0x03,0x05,0x7f,0x00]
327// VI-ERR: error: instruction not supported on this GPU
328
329global_atomic_smax v[3:4], v5, off
330// GFX10: encoding: [0x00,0x80,0xdc,0xdc,0x03,0x05,0x7d,0x00]
331// GFX9: global_atomic_smax v[3:4], v5, off   ; encoding: [0x00,0x80,0x18,0xdd,0x03,0x05,0x7f,0x00]
332// VI-ERR: error: instruction not supported on this GPU
333
334global_atomic_umax v[3:4], v5, off
335// GFX10: encoding: [0x00,0x80,0xe0,0xdc,0x03,0x05,0x7d,0x00]
336// GFX9: global_atomic_umax v[3:4], v5, off   ; encoding: [0x00,0x80,0x1c,0xdd,0x03,0x05,0x7f,0x00]
337// VI-ERR: error: instruction not supported on this GPU
338
339global_atomic_and v[3:4], v5, off
340// GFX10: encoding: [0x00,0x80,0xe4,0xdc,0x03,0x05,0x7d,0x00]
341// GFX9: global_atomic_and v[3:4], v5, off    ; encoding: [0x00,0x80,0x20,0xdd,0x03,0x05,0x7f,0x00]
342// VI-ERR: error: instruction not supported on this GPU
343
344global_atomic_or v[3:4], v5, off
345// GFX10: encoding: [0x00,0x80,0xe8,0xdc,0x03,0x05,0x7d,0x00]
346// GFX9: global_atomic_or v[3:4], v5, off     ; encoding: [0x00,0x80,0x24,0xdd,0x03,0x05,0x7f,0x00]
347// VI-ERR: error: instruction not supported on this GPU
348
349global_atomic_xor v[3:4], v5, off
350// GFX10: encoding: [0x00,0x80,0xec,0xdc,0x03,0x05,0x7d,0x00]
351// GFX9: global_atomic_xor v[3:4], v5, off    ; encoding: [0x00,0x80,0x28,0xdd,0x03,0x05,0x7f,0x00]
352// VI-ERR: error: instruction not supported on this GPU
353
354global_atomic_inc v[3:4], v5, off
355// GFX10: encoding: [0x00,0x80,0xf0,0xdc,0x03,0x05,0x7d,0x00]
356// GFX9: global_atomic_inc v[3:4], v5, off    ; encoding: [0x00,0x80,0x2c,0xdd,0x03,0x05,0x7f,0x00]
357// VI-ERR: error: instruction not supported on this GPU
358
359global_atomic_dec v[3:4], v5, off
360// GFX10: encoding: [0x00,0x80,0xf4,0xdc,0x03,0x05,0x7d,0x00]
361// GFX9: global_atomic_dec v[3:4], v5, off    ; encoding: [0x00,0x80,0x30,0xdd,0x03,0x05,0x7f,0x00]
362// VI-ERR: error: instruction not supported on this GPU
363
364global_atomic_add_x2 v[3:4], v[5:6], off
365// GFX10: encoding: [0x00,0x80,0x48,0xdd,0x03,0x05,0x7d,0x00]
366// GFX9: global_atomic_add_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x88,0xdd,0x03,0x05,0x7f,0x00]
367// VI-ERR: error: instruction not supported on this GPU
368
369global_atomic_sub_x2 v[3:4], v[5:6], off
370// GFX10: encoding: [0x00,0x80,0x4c,0xdd,0x03,0x05,0x7d,0x00]
371// GFX9: global_atomic_sub_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x8c,0xdd,0x03,0x05,0x7f,0x00]
372// VI-ERR: error: instruction not supported on this GPU
373
374global_atomic_smin_x2 v[3:4], v[5:6], off
375// GFX10: encoding: [0x00,0x80,0x54,0xdd,0x03,0x05,0x7d,0x00]
376// GFX9: global_atomic_smin_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x90,0xdd,0x03,0x05,0x7f,0x00]
377// VI-ERR: error: instruction not supported on this GPU
378
379global_atomic_umin_x2 v[3:4], v[5:6], off
380// GFX10: encoding: [0x00,0x80,0x58,0xdd,0x03,0x05,0x7d,0x00]
381// GFX9: global_atomic_umin_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x94,0xdd,0x03,0x05,0x7f,0x00]
382// VI-ERR: error: instruction not supported on this GPU
383
384global_atomic_smax_x2 v[3:4], v[5:6], off
385// GFX10: encoding: [0x00,0x80,0x5c,0xdd,0x03,0x05,0x7d,0x00]
386// GFX9: global_atomic_smax_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x98,0xdd,0x03,0x05,0x7f,0x00]
387// VI-ERR: error: instruction not supported on this GPU
388
389global_atomic_umax_x2 v[3:4], v[5:6], off
390// GFX10: encoding: [0x00,0x80,0x60,0xdd,0x03,0x05,0x7d,0x00]
391// GFX9: global_atomic_umax_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x9c,0xdd,0x03,0x05,0x7f,0x00]
392// VI-ERR: error: instruction not supported on this GPU
393
394global_atomic_and_x2 v[3:4], v[5:6], off
395// GFX10: encoding: [0x00,0x80,0x64,0xdd,0x03,0x05,0x7d,0x00]
396// GFX9: global_atomic_and_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa0,0xdd,0x03,0x05,0x7f,0x00]
397// VI-ERR: error: instruction not supported on this GPU
398
399global_atomic_or_x2 v[3:4], v[5:6], off
400// GFX10: encoding: [0x00,0x80,0x68,0xdd,0x03,0x05,0x7d,0x00]
401// GFX9: global_atomic_or_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa4,0xdd,0x03,0x05,0x7f,0x00]
402// VI-ERR: error: instruction not supported on this GPU
403
404global_atomic_xor_x2 v[3:4], v[5:6], off
405// GFX10: encoding: [0x00,0x80,0x6c,0xdd,0x03,0x05,0x7d,0x00]
406// GFX9: global_atomic_xor_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa8,0xdd,0x03,0x05,0x7f,0x00]
407// VI-ERR: error: instruction not supported on this GPU
408
409global_atomic_inc_x2 v[3:4], v[5:6], off
410// GFX10: encoding: [0x00,0x80,0x70,0xdd,0x03,0x05,0x7d,0x00]
411// GFX9: global_atomic_inc_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xac,0xdd,0x03,0x05,0x7f,0x00]
412// VI-ERR: error: instruction not supported on this GPU
413
414global_atomic_dec_x2 v[3:4], v[5:6], off
415// GFX10: encoding: [0x00,0x80,0x74,0xdd,0x03,0x05,0x7d,0x00]
416// GFX9: global_atomic_dec_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xb0,0xdd,0x03,0x05,0x7f,0x00]
417// VI-ERR: error: instruction not supported on this GPU
418
419global_atomic_cmpswap v[3:4], v[5:6], off offset:-16
420// GFX10: encoding: [0xf0,0x8f,0xc4,0xdc,0x03,0x05,0x7d,0x00]
421// GFX9: global_atomic_cmpswap v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x04,0xdd,0x03,0x05,0x7f,0x00]
422// VI-ERR: :1: error: instruction not supported on this GPU
423
424global_atomic_cmpswap v1, v[3:4], v[5:6], off offset:-16 glc
425// GFX10: encoding: [0xf0,0x8f,0xc5,0xdc,0x03,0x05,0x7d,0x01]
426// GFX9: global_atomic_cmpswap v1, v[3:4], v[5:6], off offset:-16 glc ; encoding: [0xf0,0x9f,0x05,0xdd,0x03,0x05,0x7f,0x01]
427// VI-ERR: :1: error: instruction not supported on this GPU
428
429global_atomic_cmpswap v1, v3, v[5:6], s[2:3] offset:-16 glc
430// GFX10: encoding: [0xf0,0x8f,0xc5,0xdc,0x03,0x05,0x02,0x01]
431// GFX9: global_atomic_cmpswap v1, v3, v[5:6], s[2:3] offset:-16 glc ; encoding: [0xf0,0x9f,0x05,0xdd,0x03,0x05,0x02,0x01]
432// VI-ERR: :1: error: instruction not supported on this GPU
433
434global_atomic_cmpswap_x2 v[5:6], v[7:10], off offset:-16
435// GFX10: encoding: [0xf0,0x8f,0x44,0xdd,0x05,0x07,0x7d,0x00]
436// GFX9: global_atomic_cmpswap_x2 v[5:6], v[7:10], off offset:-16 ; encoding: [0xf0,0x9f,0x84,0xdd,0x05,0x07,0x7f,0x00]
437// VI-ERR: :1: error: instruction not supported on this GPU
438
439global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-16 glc
440// GFX10: encoding: [0xf0,0x8f,0x45,0xdd,0x05,0x07,0x7d,0x01]
441// GFX9: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-16 glc ; encoding: [0xf0,0x9f,0x85,0xdd,0x05,0x07,0x7f,0x01]
442// VI-ERR: :1: error: instruction not supported on this GPU
443
444global_atomic_cmpswap_x2 v[1:2], v5, v[7:10], s[2:3] offset:-16 glc
445// GFX10: encoding: [0xf0,0x8f,0x45,0xdd,0x05,0x07,0x02,0x01]
446// GFX9: global_atomic_cmpswap_x2 v[1:2], v5, v[7:10], s[2:3] offset:-16 glc ; encoding: [0xf0,0x9f,0x85,0xdd,0x05,0x07,0x02,0x01]
447// VI-ERR: :1: error: instruction not supported on this GPU
448
449global_atomic_swap v[3:4], v5, off offset:-16
450// GFX10: encoding: [0xf0,0x8f,0xc0,0xdc,0x03,0x05,0x7d,0x00]
451// GFX9: global_atomic_swap v[3:4], v5, off   offset:-16 ; encoding: [0xf0,0x9f,0x00,0xdd,0x03,0x05,0x7f,0x00]
452// VI-ERR: :1: error: instruction not supported on this GPU
453
454global_atomic_swap_x2 v[3:4], v[5:6], off offset:-16
455// GFX10: encoding: [0xf0,0x8f,0x40,0xdd,0x03,0x05,0x7d,0x00]
456// GFX9: global_atomic_swap_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x80,0xdd,0x03,0x05,0x7f,0x00]
457// VI-ERR: :1: error: instruction not supported on this GPU
458
459global_atomic_add v[3:4], v5, off offset:-16
460// GFX10: encoding: [0xf0,0x8f,0xc8,0xdc,0x03,0x05,0x7d,0x00]
461// GFX9: global_atomic_add v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x08,0xdd,0x03,0x05,0x7f,0x00]
462// VI-ERR: :1: error: instruction not supported on this GPU
463
464global_atomic_sub v[3:4], v5, off offset:-16
465// GFX10: encoding: [0xf0,0x8f,0xcc,0xdc,0x03,0x05,0x7d,0x00]
466// GFX9: global_atomic_sub v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x0c,0xdd,0x03,0x05,0x7f,0x00]
467// VI-ERR: :1: error: instruction not supported on this GPU
468
469global_atomic_smin v[3:4], v5, off offset:-16
470// GFX10: encoding: [0xf0,0x8f,0xd4,0xdc,0x03,0x05,0x7d,0x00]
471// GFX9: global_atomic_smin v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x10,0xdd,0x03,0x05,0x7f,0x00]
472// VI-ERR: :1: error: instruction not supported on this GPU
473
474global_atomic_umin v[3:4], v5, off offset:-16
475// GFX10: encoding: [0xf0,0x8f,0xd8,0xdc,0x03,0x05,0x7d,0x00]
476// GFX9: global_atomic_umin v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x14,0xdd,0x03,0x05,0x7f,0x00]
477// VI-ERR: :1: error: instruction not supported on this GPU
478
479global_atomic_smax v[3:4], v5, off offset:-16
480// GFX10: encoding: [0xf0,0x8f,0xdc,0xdc,0x03,0x05,0x7d,0x00]
481// GFX9: global_atomic_smax v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x18,0xdd,0x03,0x05,0x7f,0x00]
482// VI-ERR: :1: error: instruction not supported on this GPU
483
484global_atomic_umax v[3:4], v5, off offset:-16
485// GFX10: encoding: [0xf0,0x8f,0xe0,0xdc,0x03,0x05,0x7d,0x00]
486// GFX9: global_atomic_umax v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x1c,0xdd,0x03,0x05,0x7f,0x00]
487// VI-ERR: :1: error: instruction not supported on this GPU
488
489global_atomic_and v[3:4], v5, off offset:-16
490// GFX10: encoding: [0xf0,0x8f,0xe4,0xdc,0x03,0x05,0x7d,0x00]
491// GFX9: global_atomic_and v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x20,0xdd,0x03,0x05,0x7f,0x00]
492// VI-ERR: :1: error: instruction not supported on this GPU
493
494global_atomic_or v[3:4], v5, off offset:-16
495// GFX10: encoding: [0xf0,0x8f,0xe8,0xdc,0x03,0x05,0x7d,0x00]
496// GFX9: global_atomic_or v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x24,0xdd,0x03,0x05,0x7f,0x00]
497// VI-ERR: :1: error: instruction not supported on this GPU
498
499global_atomic_xor v[3:4], v5, off offset:-16
500// GFX10: encoding: [0xf0,0x8f,0xec,0xdc,0x03,0x05,0x7d,0x00]
501// GFX9: global_atomic_xor v[3:4], v5, off  offset:-16 ; encoding: [0xf0,0x9f,0x28,0xdd,0x03,0x05,0x7f,0x00]
502// VI-ERR: :1: error: instruction not supported on this GPU
503
504global_atomic_inc v[3:4], v5, off offset:-16
505// GFX10: encoding: [0xf0,0x8f,0xf0,0xdc,0x03,0x05,0x7d,0x00]
506// GFX9: global_atomic_inc v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x2c,0xdd,0x03,0x05,0x7f,0x00]
507// VI-ERR: :1: error: instruction not supported on this GPU
508
509global_atomic_dec v[3:4], v5, off offset:-16
510// GFX10: encoding: [0xf0,0x8f,0xf4,0xdc,0x03,0x05,0x7d,0x00]
511// GFX9: global_atomic_dec v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x30,0xdd,0x03,0x05,0x7f,0x00]
512// VI-ERR: :1: error: instruction not supported on this GPU
513
514global_atomic_add_x2 v[3:4], v[5:6], off offset:-16
515// GFX10: encoding: [0xf0,0x8f,0x48,0xdd,0x03,0x05,0x7d,0x00]
516// GFX9: global_atomic_add_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x88,0xdd,0x03,0x05,0x7f,0x00]
517// VI-ERR: :1: error: instruction not supported on this GPU
518
519global_atomic_sub_x2 v[3:4], v[5:6], off offset:-16
520// GFX10: encoding: [0xf0,0x8f,0x4c,0xdd,0x03,0x05,0x7d,0x00]
521// GFX9: global_atomic_sub_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x8c,0xdd,0x03,0x05,0x7f,0x00]
522// VI-ERR: :1: error: instruction not supported on this GPU
523
524global_atomic_smin_x2 v[3:4], v[5:6], off offset:-16
525// GFX10: encoding: [0xf0,0x8f,0x54,0xdd,0x03,0x05,0x7d,0x00]
526// GFX9: global_atomic_smin_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x90,0xdd,0x03,0x05,0x7f,0x00]
527// VI-ERR: :1: error: instruction not supported on this GPU
528
529global_atomic_umin_x2 v[3:4], v[5:6], off offset:-16
530// GFX10: encoding: [0xf0,0x8f,0x58,0xdd,0x03,0x05,0x7d,0x00]
531// GFX9: global_atomic_umin_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x94,0xdd,0x03,0x05,0x7f,0x00]
532// VI-ERR: :1: error: instruction not supported on this GPU
533
534global_atomic_smax_x2 v[3:4], v[5:6], off offset:-16
535// GFX10: encoding: [0xf0,0x8f,0x5c,0xdd,0x03,0x05,0x7d,0x00]
536// GFX9: global_atomic_smax_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x98,0xdd,0x03,0x05,0x7f,0x00]
537// VI-ERR: :1: error: instruction not supported on this GPU
538
539global_atomic_umax_x2 v[3:4], v[5:6], off offset:-16
540// GFX10: encoding: [0xf0,0x8f,0x60,0xdd,0x03,0x05,0x7d,0x00]
541// GFX9: global_atomic_umax_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x9c,0xdd,0x03,0x05,0x7f,0x00]
542// VI-ERR: :1: error: instruction not supported on this GPU
543
544global_atomic_and_x2 v[3:4], v[5:6], off offset:-16
545// GFX10: encoding: [0xf0,0x8f,0x64,0xdd,0x03,0x05,0x7d,0x00]
546// GFX9: global_atomic_and_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa0,0xdd,0x03,0x05,0x7f,0x00]
547// VI-ERR: :1: error: instruction not supported on this GPU
548
549global_atomic_or_x2 v[3:4], v[5:6], off offset:-16
550// GFX10: encoding: [0xf0,0x8f,0x68,0xdd,0x03,0x05,0x7d,0x00]
551// GFX9: global_atomic_or_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa4,0xdd,0x03,0x05,0x7f,0x00]
552// VI-ERR: :1: error: instruction not supported on this GPU
553
554global_atomic_xor_x2 v[3:4], v[5:6], off offset:-16
555// GFX10: encoding: [0xf0,0x8f,0x6c,0xdd,0x03,0x05,0x7d,0x00]
556// GFX9: global_atomic_xor_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa8,0xdd,0x03,0x05,0x7f,0x00]
557// VI-ERR: :1: error: instruction not supported on this GPU
558
559global_atomic_inc_x2 v[3:4], v[5:6], off offset:-16
560// GFX10: encoding: [0xf0,0x8f,0x70,0xdd,0x03,0x05,0x7d,0x00]
561// GFX9: global_atomic_inc_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xac,0xdd,0x03,0x05,0x7f,0x00]
562// VI-ERR: :1: error: instruction not supported on this GPU
563
564global_atomic_dec_x2 v[3:4], v[5:6], off offset:-16
565// GFX10: encoding: [0xf0,0x8f,0x74,0xdd,0x03,0x05,0x7d,0x00]
566// GFX9: global_atomic_dec_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xb0,0xdd,0x03,0x05,0x7f,0x00]
567// VI-ERR: :1: error: instruction not supported on this GPU
568
569global_load_ubyte_d16 v1, v[3:4], off
570// GFX10: encoding: [0x00,0x80,0x80,0xdc,0x03,0x00,0x7d,0x01]
571// GFX9: global_load_ubyte_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x80,0xdc,0x03,0x00,0x7f,0x01]
572// VI-ERR: error: instruction not supported on this GPU
573
574global_load_ubyte_d16_hi v1, v[3:4], off
575// GFX10: encoding: [0x00,0x80,0x84,0xdc,0x03,0x00,0x7d,0x01]
576// GFX9: global_load_ubyte_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x84,0xdc,0x03,0x00,0x7f,0x01]
577// VI-ERR: error: instruction not supported on this GPU
578
579global_load_sbyte_d16 v1, v[3:4], off
580// GFX10: encoding: [0x00,0x80,0x88,0xdc,0x03,0x00,0x7d,0x01]
581// GFX9: global_load_sbyte_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x88,0xdc,0x03,0x00,0x7f,0x01]
582// VI-ERR: error: instruction not supported on this GPU
583
584global_load_sbyte_d16_hi v1, v[3:4], off
585// GFX10: encoding: [0x00,0x80,0x8c,0xdc,0x03,0x00,0x7d,0x01]
586// GFX9: global_load_sbyte_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x8c,0xdc,0x03,0x00,0x7f,0x01]
587// VI-ERR: error: instruction not supported on this GPU
588
589global_load_short_d16 v1, v[3:4], off
590// GFX10: encoding: [0x00,0x80,0x90,0xdc,0x03,0x00,0x7d,0x01]
591// GFX9: global_load_short_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x90,0xdc,0x03,0x00,0x7f,0x01]
592// VI-ERR: error: instruction not supported on this GPU
593
594global_load_short_d16_hi v1, v[3:4], off
595// GFX10: encoding: [0x00,0x80,0x94,0xdc,0x03,0x00,0x7d,0x01]
596// GFX9: global_load_short_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x94,0xdc,0x03,0x00,0x7f,0x01]
597// VI-ERR: error: instruction not supported on this GPU
598
599global_store_byte_d16_hi v[3:4], v1, off
600// GFX10: encoding: [0x00,0x80,0x64,0xdc,0x03,0x01,0x7d,0x00]
601// GFX9: global_store_byte_d16_hi v[3:4], v1, off ; encoding: [0x00,0x80,0x64,0xdc,0x03,0x01,0x7f,0x00]
602// VI-ERR: error: instruction not supported on this GPU
603
604global_store_short_d16_hi v[3:4], v1, off
605// GFX10: encoding: [0x00,0x80,0x6c,0xdc,0x03,0x01,0x7d,0x00]
606// GFX9: global_store_short_d16_hi v[3:4], v1, off ; encoding: [0x00,0x80,0x6c,0xdc,0x03,0x01,0x7f,0x00]
607// VI-ERR: error: instruction not supported on this GPU
608
609global_atomic_add v0, v[1:2], v2, off glc slc
610// GFX10: global_atomic_add v0, v[1:2], v2, off glc slc ; encoding: [0x00,0x80,0xcb,0xdc,0x01,0x02,0x7d,0x00]
611// GFX9: global_atomic_add v0, v[1:2], v2, off glc slc ; encoding: [0x00,0x80,0x0b,0xdd,0x01,0x02,0x7f,0x00]
612// VI-ERR: error: instruction not supported on this GPU
613