[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / flat-global.s
blob2dac9c4c110072d005abd8fa6bacdf6561819b98
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
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
8 global_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
13 global_load_ubyte v1, v[3:4], off dlc
14 // GFX10: encoding: [0x00,0x90,0x20,0xdc,0x03,0x00,0x7d,0x01]
15 // GFX9-ERR: error: dlc modifier is not supported on this GPU
16 // VI-ERR: error: instruction not supported on this GPU
18 global_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
23 global_load_sbyte v1, v[3:4], off dlc
24 // GFX10: encoding: [0x00,0x90,0x24,0xdc,0x03,0x00,0x7d,0x01]
25 // GFX9-ERR: error: dlc modifier is not supported on this GPU
26 // VI-ERR: error: instruction not supported on this GPU
28 global_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
33 global_load_ushort v1, v[3:4], off dlc
34 // GFX10: encoding: [0x00,0x90,0x28,0xdc,0x03,0x00,0x7d,0x01]
35 // GFX9-ERR: error: dlc modifier is not supported on this GPU
36 // VI-ERR: error: instruction not supported on this GPU
38 global_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
43 global_load_sshort v1, v[3:4], off dlc
44 // GFX10: encoding: [0x00,0x90,0x2c,0xdc,0x03,0x00,0x7d,0x01]
45 // GFX9-ERR: error: dlc modifier is not supported on this GPU
46 // VI-ERR: error: instruction not supported on this GPU
48 global_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
53 global_load_dword v1, v[3:4], off dlc
54 // GFX10: encoding: [0x00,0x90,0x30,0xdc,0x03,0x00,0x7d,0x01]
55 // GFX9-ERR: error: dlc modifier is not supported on this GPU
56 // VI-ERR: error: instruction not supported on this GPU
58 global_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
63 global_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: dlc modifier is not supported on this GPU
66 // VI-ERR: error: instruction not supported on this GPU
68 global_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
73 global_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: dlc modifier is not supported on this GPU
76 // VI-ERR: error: instruction not supported on this GPU
78 global_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
83 global_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: dlc modifier is not supported on this GPU
86 // VI-ERR: error: instruction not supported on this GPU
88 global_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
93 global_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
98 global_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
103 global_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
108 global_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
113 global_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
118 global_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
123 global_store_byte v[3:4], v1, off dlc
124 // GFX10: encoding: [0x00,0x90,0x60,0xdc,0x03,0x01,0x7d,0x00]
125 // GFX9-ERR: error: dlc modifier is not supported on this GPU
126 // VI-ERR: error: instruction not supported on this GPU
128 global_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
133 global_store_short v[3:4], v1, off dlc
134 // GFX10: encoding: [0x00,0x90,0x68,0xdc,0x03,0x01,0x7d,0x00]
135 // GFX9-ERR: error: dlc modifier is not supported on this GPU
136 // VI-ERR: error: instruction not supported on this GPU
138 global_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
143 global_store_dword v[3:4], v1, off dlc
144 // GFX10: encoding: [0x00,0x90,0x70,0xdc,0x03,0x01,0x7d,0x00]
145 // GFX9-ERR: error: dlc modifier is not supported on this GPU
146 // VI-ERR: error: instruction not supported on this GPU
148 global_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
153 global_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: dlc modifier is not supported on this GPU
156 // VI-ERR: error: instruction not supported on this GPU
158 global_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
163 global_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: dlc modifier is not supported on this GPU
166 // VI-ERR: error: instruction not supported on this GPU
168 global_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
173 global_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: dlc modifier is not supported on this GPU
176 // VI-ERR: error: instruction not supported on this GPU
178 global_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
183 global_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
188 global_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
193 global_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
198 global_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
203 global_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
208 global_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
213 // XXX: Is this valid?
214 global_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
219 global_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
224 global_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
229 global_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
234 global_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
239 global_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
244 global_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
249 global_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
254 global_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
259 global_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
264 global_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
269 global_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
274 global_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
279 global_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
284 global_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
289 global_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
294 global_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
299 global_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
304 global_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
309 global_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
314 global_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
319 global_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
324 global_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
329 global_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
334 global_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
339 global_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
344 global_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
349 global_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
354 global_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
359 global_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
364 global_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
369 global_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
374 global_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
379 global_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
384 global_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
389 global_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
394 global_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
399 global_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
404 global_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
409 global_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
414 global_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
419 global_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
424 global_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
429 global_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
434 global_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
439 global_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
444 global_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
449 global_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
454 global_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
459 global_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
464 global_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
469 global_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
474 global_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
479 global_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
484 global_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
489 global_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
494 global_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
499 global_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
504 global_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
509 global_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
514 global_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
519 global_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
524 global_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
529 global_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
534 global_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
539 global_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
544 global_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
549 global_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
554 global_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
559 global_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
564 global_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
569 global_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
574 global_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
579 global_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
584 global_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
589 global_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
594 global_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
599 global_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
604 global_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
609 global_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