• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefix=GFX9 -check-prefix=GCN %s
2// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 2>&1 %s | FileCheck -check-prefix=GFX9-ERR -check-prefix=GCNERR --implicit-check-not=error: %s
3// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga 2>&1 %s | FileCheck -check-prefix=VI-ERR -check-prefix=GCNERR --implicit-check-not=error: %s
4
5// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck --check-prefixes=GFX10 %s
6// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefixes=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
88// FIXME: VI error should be instruction nto supported
89global_load_dword v1, v[3:4], off offset:0
90// GFX10: encoding: [0x00,0x80,0x30,0xdc,0x03,0x00,0x7d,0x01]
91// GFX9: global_load_dword v1, v[3:4], off    ; encoding: [0x00,0x80,0x50,0xdc,0x03,0x00,0x7f,0x01]
92// VI-ERR: :1: error: instruction not supported on this GPU
93
94global_load_dword v1, v[3:4], off offset:4095
95// GFX10-ERR: :35: error: expected a 12-bit signed offset
96// GFX9: global_load_dword v1, v[3:4], off offset:4095 ; encoding: [0xff,0x8f,0x50,0xdc,0x03,0x00,0x7f,0x01]
97// VI-ERR: :1: error: instruction not supported on this GPU
98
99global_load_dword v1, v[3:4], off offset:-1
100// GFX10: encoding: [0xff,0x8f,0x30,0xdc,0x03,0x00,0x7d,0x01]
101// GFX9: global_load_dword v1, v[3:4], off offset:-1 ; encoding: [0xff,0x9f,0x50,0xdc,0x03,0x00,0x7f,0x01]
102// VI-ERR: :1: error: instruction not supported on this GPU
103
104global_load_dword v1, v[3:4], off offset:-4096
105// GFX10-ERR: :35: error: expected a 12-bit signed offset
106// GFX9: global_load_dword v1, v[3:4], off offset:-4096 ; encoding: [0x00,0x90,0x50,0xdc,0x03,0x00,0x7f,0x01]
107// VI-ERR: :1: error: instruction not supported on this GPU
108
109global_load_dword v1, v[3:4], off offset:4096
110// GFX10-ERR: :35: error: expected a 12-bit signed offset
111// GFX9-ERR: :35: error: expected a 13-bit signed offset
112// VI-ERR: :1: error: instruction not supported on this GPU
113
114global_load_dword v1, v[3:4] off, offset:-4097
115// GFX10-ERR: :35: error: expected a 12-bit signed offset
116// GFX9-ERR: :35: error: expected a 13-bit signed offset
117// VI-ERR: :1: error: instruction not supported on this GPU
118
119global_store_byte v[3:4], v1, off
120// GFX10: encoding: [0x00,0x80,0x60,0xdc,0x03,0x01,0x7d,0x00]
121// GFX9: global_store_byte v[3:4], v1, off ; encoding: [0x00,0x80,0x60,0xdc,0x03,0x01,0x7f,0x00]
122// VI-ERR: error: instruction not supported on this GPU
123
124global_store_byte v[3:4], v1, off dlc
125// GFX10: encoding: [0x00,0x90,0x60,0xdc,0x03,0x01,0x7d,0x00]
126// GFX9-ERR: error: failed parsing operand
127// VI-ERR: error: instruction not supported on this GPU
128
129global_store_short v[3:4], v1, off
130// GFX10: encoding: [0x00,0x80,0x68,0xdc,0x03,0x01,0x7d,0x00]
131// GFX9: global_store_short v[3:4], v1, off ; encoding: [0x00,0x80,0x68,0xdc,0x03,0x01,0x7f,0x00]
132// VI-ERR: error: instruction not supported on this GPU
133
134global_store_short v[3:4], v1, off dlc
135// GFX10: encoding: [0x00,0x90,0x68,0xdc,0x03,0x01,0x7d,0x00]
136// GFX9-ERR: error: failed parsing operand
137// VI-ERR: error: instruction not supported on this GPU
138
139global_store_dword v[3:4], v1, off
140// GFX10: encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7d,0x00]
141// GFX9: global_store_dword v[3:4], v1, off ; encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7f,0x00]
142// VI-ERR: error: instruction not supported on this GPU
143
144global_store_dword v[3:4], v1, off dlc
145// GFX10: encoding: [0x00,0x90,0x70,0xdc,0x03,0x01,0x7d,0x00]
146// GFX9-ERR: error: failed parsing operand
147// VI-ERR: error: instruction not supported on this GPU
148
149global_store_dwordx2 v[3:4], v[1:2], off
150// GFX10: encoding: [0x00,0x80,0x74,0xdc,0x03,0x01,0x7d,0x00]
151// GFX9: global_store_dwordx2 v[3:4], v[1:2], off ; encoding: [0x00,0x80,0x74,0xdc,0x03,0x01,0x7f,0x00]
152// VI-ERR: error: instruction not supported on this GPU
153
154global_store_dwordx2 v[3:4], v[1:2], off dlc
155// GFX10: encoding: [0x00,0x90,0x74,0xdc,0x03,0x01,0x7d,0x00]
156// GFX9-ERR: error: failed parsing operand
157// VI-ERR: error: instruction not supported on this GPU
158
159global_store_dwordx3 v[3:4], v[1:3], off
160// GFX10: encoding: [0x00,0x80,0x7c,0xdc,0x03,0x01,0x7d,0x00]
161// GFX9: global_store_dwordx3 v[3:4], v[1:3], off ; encoding: [0x00,0x80,0x78,0xdc,0x03,0x01,0x7f,0x00]
162// VI-ERR: error: instruction not supported on this GPU
163
164global_store_dwordx3 v[3:4], v[1:3], off dlc
165// GFX10: encoding: [0x00,0x90,0x7c,0xdc,0x03,0x01,0x7d,0x00]
166// GFX9-ERR: error: failed parsing operand
167// VI-ERR: error: instruction not supported on this GPU
168
169global_store_dwordx4 v[3:4], v[1:4], off
170// GFX10: encoding: [0x00,0x80,0x78,0xdc,0x03,0x01,0x7d,0x00]
171// GFX9: global_store_dwordx4 v[3:4], v[1:4], off ; encoding: [0x00,0x80,0x7c,0xdc,0x03,0x01,0x7f,0x00]
172// VI-ERR: error: instruction not supported on this GPU
173
174global_store_dwordx4 v[3:4], v[1:4], off dlc
175// GFX10: encoding: [0x00,0x90,0x78,0xdc,0x03,0x01,0x7d,0x00]
176// GFX9-ERR: error: failed parsing operand
177// VI-ERR: error: instruction not supported on this GPU
178
179global_store_dword v[3:4], v1, off offset:12
180// GFX10: encoding: [0x0c,0x80,0x70,0xdc,0x03,0x01,0x7d,0x00]
181// GFX9: global_store_dword v[3:4], v1, off offset:12 ; encoding: [0x0c,0x80,0x70,0xdc,0x03,0x01,0x7f,0x00]
182// VI-ERR: :1: error: instruction not supported on this GPU
183
184global_load_dword v1, v3, s[2:3]
185// GFX10: encoding: [0x00,0x80,0x30,0xdc,0x03,0x00,0x02,0x01]
186// GFX9: global_load_dword v1, v3, s[2:3] ; encoding: [0x00,0x80,0x50,0xdc,0x03,0x00,0x02,0x01]
187// VI-ERR: error: instruction not supported on this GPU
188
189global_load_dword v1, v3, s[2:3] offset:24
190// GFX10: encoding: [0x18,0x80,0x30,0xdc,0x03,0x00,0x02,0x01]
191// GFX9: global_load_dword v1, v3, s[2:3] offset:24 ; encoding: [0x18,0x80,0x50,0xdc,0x03,0x00,0x02,0x01]
192// VI-ERR: :1: error: instruction not supported on this GPU
193
194global_load_dword v1, v3, s[2:3] offset:-8
195// GFX10: encoding: [0xf8,0x8f,0x30,0xdc,0x03,0x00,0x02,0x01]
196// GFX9: global_load_dword v1, v3, s[2:3] offset:-8 ; encoding: [0xf8,0x9f,0x50,0xdc,0x03,0x00,0x02,0x01]
197// VI-ERR: :1: error: instruction not supported on this GPU
198
199global_store_dword v3, v1, s[2:3]
200// GFX10: encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]
201// GFX9: global_store_dword v3, v1, s[2:3] ; encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]
202// VI-ERR: error: instruction not supported on this GPU
203
204global_store_dword v3, v1, s[2:3] offset:24
205// GFX10: encoding: [0x18,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]
206// GFX9: global_store_dword v3, v1, s[2:3] offset:24 ; encoding: [0x18,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]
207// VI-ERR: :1: error: instruction not supported on this GPU
208
209global_store_dword v3, v1, s[2:3] offset:-8
210// GFX10: encoding: [0xf8,0x8f,0x70,0xdc,0x03,0x01,0x02,0x00]
211// GFX9: global_store_dword v3, v1, s[2:3] offset:-8 ; encoding: [0xf8,0x9f,0x70,0xdc,0x03,0x01,0x02,0x00]
212// VI-ERR: :1: error: instruction not supported on this GPU
213
214// XXX: Is this valid?
215global_store_dword v3, v1, exec
216// GFX10: encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7e,0x00]
217// GFX9: global_store_dword v3, v1, exec ; encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7e,0x00]
218// VI-ERR: error: instruction not supported on this GPU
219
220global_load_dword v1, v[3:4], s2
221// GFX10-ERR: error: invalid operand for instruction
222// GFX9-ERR: :31: error: invalid operand for instruction
223// VI-ERR: :1: error: instruction not supported on this GPU
224
225global_load_dword v1, v[3:4], exec_hi
226// GFX10-ERR: error: invalid operand for instruction
227// GFX9-ERR: :31: error: invalid operand for instruction
228// VI-ERR: :1: error: instruction not supported on this GPU
229
230global_atomic_cmpswap v[3:4], v[5:6], off
231// GFX10: encoding: [0x00,0x80,0xc4,0xdc,0x03,0x05,0x7d,0x00]
232// GFX9: global_atomic_cmpswap v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x04,0xdd,0x03,0x05,0x7f,0x00]
233// VI-ERR: error: instruction not supported on this GPU
234
235global_atomic_cmpswap_x2 v[3:4], v[5:8], off
236// GFX10: encoding: [0x00,0x80,0x44,0xdd,0x03,0x05,0x7d,0x00]
237// GFX9: global_atomic_cmpswap_x2 v[3:4], v[5:8], off ; encoding: [0x00,0x80,0x84,0xdd,0x03,0x05,0x7f,0x00]
238// VI-ERR: error: instruction not supported on this GPU
239
240global_atomic_swap v[3:4], v5, off
241// GFX10: encoding: [0x00,0x80,0xc0,0xdc,0x03,0x05,0x7d,0x00]
242// GFX9: global_atomic_swap v[3:4], v5, off   ; encoding: [0x00,0x80,0x00,0xdd,0x03,0x05,0x7f,0x00]
243// VI-ERR: error: instruction not supported on this GPU
244
245global_atomic_swap_x2 v[3:4], v[5:6], off
246// GFX10: encoding: [0x00,0x80,0x40,0xdd,0x03,0x05,0x7d,0x00]
247// GFX9: global_atomic_swap_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x80,0xdd,0x03,0x05,0x7f,0x00]
248// VI-ERR: error: instruction not supported on this GPU
249
250global_atomic_add v[3:4], v5, off
251// GFX10: encoding: [0x00,0x80,0xc8,0xdc,0x03,0x05,0x7d,0x00]
252// GFX9: global_atomic_add v[3:4], v5, off   ; encoding: [0x00,0x80,0x08,0xdd,0x03,0x05,0x7f,0x00]
253// VI-ERR: error: instruction not supported on this GPU
254
255global_atomic_sub v[3:4], v5, off
256// GFX10: encoding: [0x00,0x80,0xcc,0xdc,0x03,0x05,0x7d,0x00]
257// GFX9: global_atomic_sub v[3:4], v5, off    ; encoding: [0x00,0x80,0x0c,0xdd,0x03,0x05,0x7f,0x00]
258// VI-ERR: error: instruction not supported on this GPU
259
260global_atomic_smin v[3:4], v5, off
261// GFX10: encoding: [0x00,0x80,0xd4,0xdc,0x03,0x05,0x7d,0x00]
262// GFX9: global_atomic_smin v[3:4], v5, off   ; encoding: [0x00,0x80,0x10,0xdd,0x03,0x05,0x7f,0x00]
263// VI-ERR: error: instruction not supported on this GPU
264
265global_atomic_umin v[3:4], v5, off
266// GFX10: encoding: [0x00,0x80,0xd8,0xdc,0x03,0x05,0x7d,0x00]
267// GFX9: global_atomic_umin v[3:4], v5, off   ; encoding: [0x00,0x80,0x14,0xdd,0x03,0x05,0x7f,0x00]
268// VI-ERR: error: instruction not supported on this GPU
269
270global_atomic_smax v[3:4], v5, off
271// GFX10: encoding: [0x00,0x80,0xdc,0xdc,0x03,0x05,0x7d,0x00]
272// GFX9: global_atomic_smax v[3:4], v5, off   ; encoding: [0x00,0x80,0x18,0xdd,0x03,0x05,0x7f,0x00]
273// VI-ERR: error: instruction not supported on this GPU
274
275global_atomic_umax v[3:4], v5, off
276// GFX10: encoding: [0x00,0x80,0xe0,0xdc,0x03,0x05,0x7d,0x00]
277// GFX9: global_atomic_umax v[3:4], v5, off   ; encoding: [0x00,0x80,0x1c,0xdd,0x03,0x05,0x7f,0x00]
278// VI-ERR: error: instruction not supported on this GPU
279
280global_atomic_and v[3:4], v5, off
281// GFX10: encoding: [0x00,0x80,0xe4,0xdc,0x03,0x05,0x7d,0x00]
282// GFX9: global_atomic_and v[3:4], v5, off    ; encoding: [0x00,0x80,0x20,0xdd,0x03,0x05,0x7f,0x00]
283// VI-ERR: error: instruction not supported on this GPU
284
285global_atomic_or v[3:4], v5, off
286// GFX10: encoding: [0x00,0x80,0xe8,0xdc,0x03,0x05,0x7d,0x00]
287// GFX9: global_atomic_or v[3:4], v5, off     ; encoding: [0x00,0x80,0x24,0xdd,0x03,0x05,0x7f,0x00]
288// VI-ERR: error: instruction not supported on this GPU
289
290global_atomic_xor v[3:4], v5, off
291// GFX10: encoding: [0x00,0x80,0xec,0xdc,0x03,0x05,0x7d,0x00]
292// GFX9: global_atomic_xor v[3:4], v5, off    ; encoding: [0x00,0x80,0x28,0xdd,0x03,0x05,0x7f,0x00]
293// VI-ERR: error: instruction not supported on this GPU
294
295global_atomic_inc v[3:4], v5, off
296// GFX10: encoding: [0x00,0x80,0xf0,0xdc,0x03,0x05,0x7d,0x00]
297// GFX9: global_atomic_inc v[3:4], v5, off    ; encoding: [0x00,0x80,0x2c,0xdd,0x03,0x05,0x7f,0x00]
298// VI-ERR: error: instruction not supported on this GPU
299
300global_atomic_dec v[3:4], v5, off
301// GFX10: encoding: [0x00,0x80,0xf4,0xdc,0x03,0x05,0x7d,0x00]
302// GFX9: global_atomic_dec v[3:4], v5, off    ; encoding: [0x00,0x80,0x30,0xdd,0x03,0x05,0x7f,0x00]
303// VI-ERR: error: instruction not supported on this GPU
304
305global_atomic_add_x2 v[3:4], v[5:6], off
306// GFX10: encoding: [0x00,0x80,0x48,0xdd,0x03,0x05,0x7d,0x00]
307// GFX9: global_atomic_add_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x88,0xdd,0x03,0x05,0x7f,0x00]
308// VI-ERR: error: instruction not supported on this GPU
309
310global_atomic_sub_x2 v[3:4], v[5:6], off
311// GFX10: encoding: [0x00,0x80,0x4c,0xdd,0x03,0x05,0x7d,0x00]
312// GFX9: global_atomic_sub_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x8c,0xdd,0x03,0x05,0x7f,0x00]
313// VI-ERR: error: instruction not supported on this GPU
314
315global_atomic_smin_x2 v[3:4], v[5:6], off
316// GFX10: encoding: [0x00,0x80,0x54,0xdd,0x03,0x05,0x7d,0x00]
317// GFX9: global_atomic_smin_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x90,0xdd,0x03,0x05,0x7f,0x00]
318// VI-ERR: error: instruction not supported on this GPU
319
320global_atomic_umin_x2 v[3:4], v[5:6], off
321// GFX10: encoding: [0x00,0x80,0x58,0xdd,0x03,0x05,0x7d,0x00]
322// GFX9: global_atomic_umin_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x94,0xdd,0x03,0x05,0x7f,0x00]
323// VI-ERR: error: instruction not supported on this GPU
324
325global_atomic_smax_x2 v[3:4], v[5:6], off
326// GFX10: encoding: [0x00,0x80,0x5c,0xdd,0x03,0x05,0x7d,0x00]
327// GFX9: global_atomic_smax_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x98,0xdd,0x03,0x05,0x7f,0x00]
328// VI-ERR: error: instruction not supported on this GPU
329
330global_atomic_umax_x2 v[3:4], v[5:6], off
331// GFX10: encoding: [0x00,0x80,0x60,0xdd,0x03,0x05,0x7d,0x00]
332// GFX9: global_atomic_umax_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x9c,0xdd,0x03,0x05,0x7f,0x00]
333// VI-ERR: error: instruction not supported on this GPU
334
335global_atomic_and_x2 v[3:4], v[5:6], off
336// GFX10: encoding: [0x00,0x80,0x64,0xdd,0x03,0x05,0x7d,0x00]
337// GFX9: global_atomic_and_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa0,0xdd,0x03,0x05,0x7f,0x00]
338// VI-ERR: error: instruction not supported on this GPU
339
340global_atomic_or_x2 v[3:4], v[5:6], off
341// GFX10: encoding: [0x00,0x80,0x68,0xdd,0x03,0x05,0x7d,0x00]
342// GFX9: global_atomic_or_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa4,0xdd,0x03,0x05,0x7f,0x00]
343// VI-ERR: error: instruction not supported on this GPU
344
345global_atomic_xor_x2 v[3:4], v[5:6], off
346// GFX10: encoding: [0x00,0x80,0x6c,0xdd,0x03,0x05,0x7d,0x00]
347// GFX9: global_atomic_xor_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa8,0xdd,0x03,0x05,0x7f,0x00]
348// VI-ERR: error: instruction not supported on this GPU
349
350global_atomic_inc_x2 v[3:4], v[5:6], off
351// GFX10: encoding: [0x00,0x80,0x70,0xdd,0x03,0x05,0x7d,0x00]
352// GFX9: global_atomic_inc_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xac,0xdd,0x03,0x05,0x7f,0x00]
353// VI-ERR: error: instruction not supported on this GPU
354
355global_atomic_dec_x2 v[3:4], v[5:6], off
356// GFX10: encoding: [0x00,0x80,0x74,0xdd,0x03,0x05,0x7d,0x00]
357// GFX9: global_atomic_dec_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xb0,0xdd,0x03,0x05,0x7f,0x00]
358// VI-ERR: error: instruction not supported on this GPU
359
360global_atomic_cmpswap v[3:4], v[5:6], off offset:-16
361// GFX10: encoding: [0xf0,0x8f,0xc4,0xdc,0x03,0x05,0x7d,0x00]
362// GFX9: global_atomic_cmpswap v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x04,0xdd,0x03,0x05,0x7f,0x00]
363// VI-ERR: :1: error: instruction not supported on this GPU
364
365global_atomic_cmpswap_x2 v[3:4], v[5:8], off offset:-16
366// GFX10: encoding: [0xf0,0x8f,0x44,0xdd,0x03,0x05,0x7d,0x00]
367// GFX9: global_atomic_cmpswap_x2 v[3:4], v[5:8], off offset:-16 ; encoding: [0xf0,0x9f,0x84,0xdd,0x03,0x05,0x7f,0x00]
368// VI-ERR: :1: error: instruction not supported on this GPU
369
370global_atomic_swap v[3:4], v5, off offset:-16
371// GFX10: encoding: [0xf0,0x8f,0xc0,0xdc,0x03,0x05,0x7d,0x00]
372// GFX9: global_atomic_swap v[3:4], v5, off   offset:-16 ; encoding: [0xf0,0x9f,0x00,0xdd,0x03,0x05,0x7f,0x00]
373// VI-ERR: :1: error: instruction not supported on this GPU
374
375global_atomic_swap_x2 v[3:4], v[5:6], off offset:-16
376// GFX10: encoding: [0xf0,0x8f,0x40,0xdd,0x03,0x05,0x7d,0x00]
377// GFX9: global_atomic_swap_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x80,0xdd,0x03,0x05,0x7f,0x00]
378// VI-ERR: :1: error: instruction not supported on this GPU
379
380global_atomic_add v[3:4], v5, off offset:-16
381// GFX10: encoding: [0xf0,0x8f,0xc8,0xdc,0x03,0x05,0x7d,0x00]
382// GFX9: global_atomic_add v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x08,0xdd,0x03,0x05,0x7f,0x00]
383// VI-ERR: :1: error: instruction not supported on this GPU
384
385global_atomic_sub v[3:4], v5, off offset:-16
386// GFX10: encoding: [0xf0,0x8f,0xcc,0xdc,0x03,0x05,0x7d,0x00]
387// GFX9: global_atomic_sub v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x0c,0xdd,0x03,0x05,0x7f,0x00]
388// VI-ERR: :1: error: instruction not supported on this GPU
389
390global_atomic_smin v[3:4], v5, off offset:-16
391// GFX10: encoding: [0xf0,0x8f,0xd4,0xdc,0x03,0x05,0x7d,0x00]
392// GFX9: global_atomic_smin v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x10,0xdd,0x03,0x05,0x7f,0x00]
393// VI-ERR: :1: error: instruction not supported on this GPU
394
395global_atomic_umin v[3:4], v5, off offset:-16
396// GFX10: encoding: [0xf0,0x8f,0xd8,0xdc,0x03,0x05,0x7d,0x00]
397// GFX9: global_atomic_umin v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x14,0xdd,0x03,0x05,0x7f,0x00]
398// VI-ERR: :1: error: instruction not supported on this GPU
399
400global_atomic_smax v[3:4], v5, off offset:-16
401// GFX10: encoding: [0xf0,0x8f,0xdc,0xdc,0x03,0x05,0x7d,0x00]
402// GFX9: global_atomic_smax v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x18,0xdd,0x03,0x05,0x7f,0x00]
403// VI-ERR: :1: error: instruction not supported on this GPU
404
405global_atomic_umax v[3:4], v5, off offset:-16
406// GFX10: encoding: [0xf0,0x8f,0xe0,0xdc,0x03,0x05,0x7d,0x00]
407// GFX9: global_atomic_umax v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x1c,0xdd,0x03,0x05,0x7f,0x00]
408// VI-ERR: :1: error: instruction not supported on this GPU
409
410global_atomic_and v[3:4], v5, off offset:-16
411// GFX10: encoding: [0xf0,0x8f,0xe4,0xdc,0x03,0x05,0x7d,0x00]
412// GFX9: global_atomic_and v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x20,0xdd,0x03,0x05,0x7f,0x00]
413// VI-ERR: :1: error: instruction not supported on this GPU
414
415global_atomic_or v[3:4], v5, off offset:-16
416// GFX10: encoding: [0xf0,0x8f,0xe8,0xdc,0x03,0x05,0x7d,0x00]
417// GFX9: global_atomic_or v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x24,0xdd,0x03,0x05,0x7f,0x00]
418// VI-ERR: :1: error: instruction not supported on this GPU
419
420global_atomic_xor v[3:4], v5, off offset:-16
421// GFX10: encoding: [0xf0,0x8f,0xec,0xdc,0x03,0x05,0x7d,0x00]
422// GFX9: global_atomic_xor v[3:4], v5, off  offset:-16 ; encoding: [0xf0,0x9f,0x28,0xdd,0x03,0x05,0x7f,0x00]
423// VI-ERR: :1: error: instruction not supported on this GPU
424
425global_atomic_inc v[3:4], v5, off offset:-16
426// GFX10: encoding: [0xf0,0x8f,0xf0,0xdc,0x03,0x05,0x7d,0x00]
427// GFX9: global_atomic_inc v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x2c,0xdd,0x03,0x05,0x7f,0x00]
428// VI-ERR: :1: error: instruction not supported on this GPU
429
430global_atomic_dec v[3:4], v5, off offset:-16
431// GFX10: encoding: [0xf0,0x8f,0xf4,0xdc,0x03,0x05,0x7d,0x00]
432// GFX9: global_atomic_dec v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x30,0xdd,0x03,0x05,0x7f,0x00]
433// VI-ERR: :1: error: instruction not supported on this GPU
434
435global_atomic_add_x2 v[3:4], v[5:6], off offset:-16
436// GFX10: encoding: [0xf0,0x8f,0x48,0xdd,0x03,0x05,0x7d,0x00]
437// GFX9: global_atomic_add_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x88,0xdd,0x03,0x05,0x7f,0x00]
438// VI-ERR: :1: error: instruction not supported on this GPU
439
440global_atomic_sub_x2 v[3:4], v[5:6], off offset:-16
441// GFX10: encoding: [0xf0,0x8f,0x4c,0xdd,0x03,0x05,0x7d,0x00]
442// GFX9: global_atomic_sub_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x8c,0xdd,0x03,0x05,0x7f,0x00]
443// VI-ERR: :1: error: instruction not supported on this GPU
444
445global_atomic_smin_x2 v[3:4], v[5:6], off offset:-16
446// GFX10: encoding: [0xf0,0x8f,0x54,0xdd,0x03,0x05,0x7d,0x00]
447// GFX9: global_atomic_smin_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x90,0xdd,0x03,0x05,0x7f,0x00]
448// VI-ERR: :1: error: instruction not supported on this GPU
449
450global_atomic_umin_x2 v[3:4], v[5:6], off offset:-16
451// GFX10: encoding: [0xf0,0x8f,0x58,0xdd,0x03,0x05,0x7d,0x00]
452// GFX9: global_atomic_umin_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x94,0xdd,0x03,0x05,0x7f,0x00]
453// VI-ERR: :1: error: instruction not supported on this GPU
454
455global_atomic_smax_x2 v[3:4], v[5:6], off offset:-16
456// GFX10: encoding: [0xf0,0x8f,0x5c,0xdd,0x03,0x05,0x7d,0x00]
457// GFX9: global_atomic_smax_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x98,0xdd,0x03,0x05,0x7f,0x00]
458// VI-ERR: :1: error: instruction not supported on this GPU
459
460global_atomic_umax_x2 v[3:4], v[5:6], off offset:-16
461// GFX10: encoding: [0xf0,0x8f,0x60,0xdd,0x03,0x05,0x7d,0x00]
462// GFX9: global_atomic_umax_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x9c,0xdd,0x03,0x05,0x7f,0x00]
463// VI-ERR: :1: error: instruction not supported on this GPU
464
465global_atomic_and_x2 v[3:4], v[5:6], off offset:-16
466// GFX10: encoding: [0xf0,0x8f,0x64,0xdd,0x03,0x05,0x7d,0x00]
467// GFX9: global_atomic_and_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa0,0xdd,0x03,0x05,0x7f,0x00]
468// VI-ERR: :1: error: instruction not supported on this GPU
469
470global_atomic_or_x2 v[3:4], v[5:6], off offset:-16
471// GFX10: encoding: [0xf0,0x8f,0x68,0xdd,0x03,0x05,0x7d,0x00]
472// GFX9: global_atomic_or_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa4,0xdd,0x03,0x05,0x7f,0x00]
473// VI-ERR: :1: error: instruction not supported on this GPU
474
475global_atomic_xor_x2 v[3:4], v[5:6], off offset:-16
476// GFX10: encoding: [0xf0,0x8f,0x6c,0xdd,0x03,0x05,0x7d,0x00]
477// GFX9: global_atomic_xor_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa8,0xdd,0x03,0x05,0x7f,0x00]
478// VI-ERR: :1: error: instruction not supported on this GPU
479
480global_atomic_inc_x2 v[3:4], v[5:6], off offset:-16
481// GFX10: encoding: [0xf0,0x8f,0x70,0xdd,0x03,0x05,0x7d,0x00]
482// GFX9: global_atomic_inc_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xac,0xdd,0x03,0x05,0x7f,0x00]
483// VI-ERR: :1: error: instruction not supported on this GPU
484
485global_atomic_dec_x2 v[3:4], v[5:6], off offset:-16
486// GFX10: encoding: [0xf0,0x8f,0x74,0xdd,0x03,0x05,0x7d,0x00]
487// GFX9: global_atomic_dec_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xb0,0xdd,0x03,0x05,0x7f,0x00]
488// VI-ERR: :1: error: instruction not supported on this GPU
489
490global_load_ubyte_d16 v1, v[3:4], off
491// GFX10: encoding: [0x00,0x80,0x80,0xdc,0x03,0x00,0x7d,0x01]
492// GFX9: global_load_ubyte_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x80,0xdc,0x03,0x00,0x7f,0x01]
493// VI-ERR: error: instruction not supported on this GPU
494
495global_load_ubyte_d16_hi v1, v[3:4], off
496// GFX10: encoding: [0x00,0x80,0x84,0xdc,0x03,0x00,0x7d,0x01]
497// GFX9: global_load_ubyte_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x84,0xdc,0x03,0x00,0x7f,0x01]
498// VI-ERR: error: instruction not supported on this GPU
499
500global_load_sbyte_d16 v1, v[3:4], off
501// GFX10: encoding: [0x00,0x80,0x88,0xdc,0x03,0x00,0x7d,0x01]
502// GFX9: global_load_sbyte_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x88,0xdc,0x03,0x00,0x7f,0x01]
503// VI-ERR: error: instruction not supported on this GPU
504
505global_load_sbyte_d16_hi v1, v[3:4], off
506// GFX10: encoding: [0x00,0x80,0x8c,0xdc,0x03,0x00,0x7d,0x01]
507// GFX9: global_load_sbyte_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x8c,0xdc,0x03,0x00,0x7f,0x01]
508// VI-ERR: error: instruction not supported on this GPU
509
510global_load_short_d16 v1, v[3:4], off
511// GFX10: encoding: [0x00,0x80,0x90,0xdc,0x03,0x00,0x7d,0x01]
512// GFX9: global_load_short_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x90,0xdc,0x03,0x00,0x7f,0x01]
513// VI-ERR: error: instruction not supported on this GPU
514
515global_load_short_d16_hi v1, v[3:4], off
516// GFX10: encoding: [0x00,0x80,0x94,0xdc,0x03,0x00,0x7d,0x01]
517// GFX9: global_load_short_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x94,0xdc,0x03,0x00,0x7f,0x01]
518// VI-ERR: error: instruction not supported on this GPU
519
520global_store_byte_d16_hi v[3:4], v1, off
521// GFX10: encoding: [0x00,0x80,0x64,0xdc,0x03,0x01,0x7d,0x00]
522// GFX9: global_store_byte_d16_hi v[3:4], v1, off ; encoding: [0x00,0x80,0x64,0xdc,0x03,0x01,0x7f,0x00]
523// VI-ERR: error: instruction not supported on this GPU
524
525global_store_short_d16_hi v[3:4], v1, off
526// GFX10: encoding: [0x00,0x80,0x6c,0xdc,0x03,0x01,0x7d,0x00]
527// GFX9: global_store_short_d16_hi v[3:4], v1, off ; encoding: [0x00,0x80,0x6c,0xdc,0x03,0x01,0x7f,0x00]
528// VI-ERR: error: instruction not supported on this GPU
529
530global_atomic_add v0, v[1:2], v2, off glc slc
531// GFX10: global_atomic_add v0, v[1:2], v2, off glc slc ; encoding: [0x00,0x80,0xcb,0xdc,0x01,0x02,0x7d,0x00]
532// GFX9: global_atomic_add v0, v[1:2], v2, off glc slc ; encoding: [0x00,0x80,0x0b,0xdd,0x01,0x02,0x7f,0x00]
533// VI-ERR: error: instruction not supported on this GPU
534