[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AMDGPU / gfx10_asm_err.s
blob4203fd5156675779423ecc8c35b5aec6c772e983
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx601 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX6-7,GFX6-8,GFX6-9 %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx701 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX6-7,GFX6-8,GFX6-9 %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx801 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX6-8,GFX6-9 %s
4 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX6-9 %s
5 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -mattr=+WavefrontSize32,-WavefrontSize64 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX10 %s
6 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -mattr=-WavefrontSize32,+WavefrontSize64 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX10 %s
8 //===----------------------------------------------------------------------===//
9 // ENC_DS.
10 //===----------------------------------------------------------------------===//
12 // GFX9+.
14 ds_write_b8_d16_hi v1, v2
15 // GFX6-8: error: instruction not supported on this GPU
17 ds_write_b16_d16_hi v1, v2
18 // GFX6-8: error: instruction not supported on this GPU
20 ds_read_u8_d16 v5, v1
21 // GFX6-8: error: instruction not supported on this GPU
23 ds_read_u8_d16_hi v5, v1
24 // GFX6-8: error: instruction not supported on this GPU
26 ds_read_i8_d16 v5, v1
27 // GFX6-8: error: instruction not supported on this GPU
29 ds_read_i8_d16_hi v5, v1
30 // GFX6-8: error: instruction not supported on this GPU
32 ds_read_u16_d16 v5, v1
33 // GFX6-8: error: instruction not supported on this GPU
35 ds_read_u16_d16_hi v5, v1
36 // GFX6-8: error: instruction not supported on this GPU
38 ds_write_addtid_b32 v5, v1
39 // GFX6-8: error: instruction not supported on this GPU
41 ds_read_addtid_b32 v5, v1
42 // GFX6-8: error: instruction not supported on this GPU
44 // GFX8+.
46 ds_add_src2_f32 v1
47 // GFX6-7: error: instruction not supported on this GPU
49 ds_add_f32 v0, v1
50 // GFX6-7: error: instruction not supported on this GPU
52 ds_add_rtn_f32 v0, v1, v2
53 // GFX6-7: error: instruction not supported on this GPU
55 ds_permute_b32 v0, v1, v2
56 // GFX6-7: error: instruction not supported on this GPU
58 ds_bpermute_b32 v0, v1, v2
59 // GFX6-7: error: instruction not supported on this GPU
61 //===----------------------------------------------------------------------===//
62 // ENC_SOP1.
63 //===----------------------------------------------------------------------===//
65 // GFX10+.
67 s_and_saveexec_b32 s0, s1
68 // GFX6-9: error: instruction not supported on this GPU
70 s_or_saveexec_b32 s0, s1
71 // GFX6-9: error: instruction not supported on this GPU
73 s_xor_saveexec_b32 s0, s1
74 // GFX6-9: error: instruction not supported on this GPU
76 s_andn2_saveexec_b32 s0, s1
77 // GFX6-9: error: instruction not supported on this GPU
79 s_orn2_saveexec_b32 s0, s1
80 // GFX6-9: error: instruction not supported on this GPU
82 s_nand_saveexec_b32 s0, s1
83 // GFX6-9: error: instruction not supported on this GPU
85 s_nor_saveexec_b32 s0, s1
86 // GFX6-9: error: instruction not supported on this GPU
88 s_xnor_saveexec_b32 s0, s1
89 // GFX6-9: error: instruction not supported on this GPU
91 s_andn1_saveexec_b32 s0, s1
92 // GFX6-9: error: instruction not supported on this GPU
94 s_orn1_saveexec_b32 s0, s1
95 // GFX6-9: error: instruction not supported on this GPU
97 s_andn1_wrexec_b32 s0, s1
98 // GFX6-9: error: instruction not supported on this GPU
100 s_andn2_wrexec_b32 s0, s1
101 // GFX6-9: error: instruction not supported on this GPU
103 s_movrelsd_2_b32 s0, s1
104 // GFX6-9: error: instruction not supported on this GPU
106 // GFX9+.
108 s_andn1_saveexec_b64 s[0:1], s[2:3]
109 // GFX6-8: error: instruction not supported on this GPU
111 s_orn1_saveexec_b64 s[0:1], s[2:3]
112 // GFX6-8: error: instruction not supported on this GPU
114 s_andn1_wrexec_b64 s[0:1], s[2:3]
115 // GFX6-8: error: instruction not supported on this GPU
117 s_andn2_wrexec_b64 s[0:1], s[2:3]
118 // GFX6-8: error: instruction not supported on this GPU
120 s_bitreplicate_b64_b32 s[0:1], s2
121 // GFX6-8: error: instruction not supported on this GPU
123 // GFX8, GFX9.
125 s_set_gpr_idx_idx s0
126 // GFX10: error: instruction not supported on this GPU
128 // GFX6, GFX7, GFX8, GFX9.
130 s_cbranch_join s0
131 // GFX10: error: instruction not supported on this GPU
133 s_mov_regrd_b32 s0, s1
134 // GFX10: error: instruction not supported on this GPU
136 //===----------------------------------------------------------------------===//
137 // ENC_SOP2.
138 //===----------------------------------------------------------------------===//
140 // GFX9+.
142 s_lshl1_add_u32 s0, s1, s2
143 // GFX6-8: error: instruction not supported on this GPU
145 s_lshl2_add_u32 s0, s1, s2
146 // GFX6-8: error: instruction not supported on this GPU
148 s_lshl3_add_u32 s0, s1, s2
149 // GFX6-8: error: instruction not supported on this GPU
151 s_lshl4_add_u32 s0, s1, s2
152 // GFX6-8: error: instruction not supported on this GPU
154 s_mul_hi_u32 s0, s1, s2
155 // GFX6-8: error: instruction not supported on this GPU
157 s_mul_hi_i32 s0, s1, s2
158 // GFX6-8: error: instruction not supported on this GPU
160 s_pack_ll_b32_b16 s0, s1, s2
161 // GFX6-8: error: instruction not supported on this GPU
163 s_pack_lh_b32_b16 s0, s1, s2
164 // GFX6-8: error: instruction not supported on this GPU
166 s_pack_hh_b32_b16 s0, s1, s2
167 // GFX6-8: error: instruction not supported on this GPU
169 // GFX8, GFX9.
171 s_rfe_restore_b64 s[0:1], s2
172 // GFX10: error: instruction not supported on this GPU
174 // GFX6, GFX7, GFX8, GFX9.
176 s_cbranch_g_fork s[0:1], s[2:3]
177 // GFX10: error: instruction not supported on this GPU
179 //===----------------------------------------------------------------------===//
180 // ENC_SOPC.
181 //===----------------------------------------------------------------------===//
183 // GFX8+.
185 s_cmp_eq_u64 s[0:1], s[2:3]
186 // GFX6-7: error: instruction not supported on this GPU
188 s_cmp_lg_u64 s[0:1], s[2:3]
189 // GFX6-7: error: instruction not supported on this GPU
191 // GFX6, GFX7, GFX8, GFX9.
193 s_setvskip s0, s1
194 // GFX10: error: instruction not supported on this GPU
196 //===----------------------------------------------------------------------===//
197 // ENC_SOPK.
198 //===----------------------------------------------------------------------===//
200 // GFX10+.
202 s_version 0x1234
203 // GFX6-9: error: instruction not supported on this GPU
205 s_waitcnt_vscnt s0, 0x1234
206 // GFX6-9: error: instruction not supported on this GPU
208 s_waitcnt_vmcnt s0, 0x1234
209 // GFX6-9: error: instruction not supported on this GPU
211 s_waitcnt_expcnt s0, 0x1234
212 // GFX6-9: error: instruction not supported on this GPU
214 s_waitcnt_lgkmcnt s0, 0x1234
215 // GFX6-9: error: instruction not supported on this GPU
217 s_subvector_loop_begin s0, 0x1234
218 // GFX6-9: error: instruction not supported on this GPU
220 s_subvector_loop_end s0, 0x1234
221 // GFX6-9: error: instruction not supported on this GPU
223 // GFX9+.
225 s_call_b64 s[0:1], 0x1234
226 // GFX6-8: error: instruction not supported on this GPU
228 // GFX6, GFX7, GFX8, GFX9.
230 s_cbranch_i_fork s[0:1], 0x1234
231 // GFX10: error: instruction not supported on this GPU
233 //===----------------------------------------------------------------------===//
234 // ENC_SOPP.
235 //===----------------------------------------------------------------------===//
237 // GFX10+.
239 s_code_end
240 // GFX6-9: error: instruction not supported on this GPU
242 s_inst_prefetch 0x0
243 // GFX6-9: error: instruction not supported on this GPU
245 s_clause 0x0
246 // GFX6-9: error: instruction not supported on this GPU
248 s_round_mode 0x0
249 // GFX6-9: error: instruction not supported on this GPU
251 s_denorm_mode 0x0
252 // GFX6-9: error: instruction not supported on this GPU
254 s_ttracedata_imm 0x0
255 // GFX6-9: error: instruction not supported on this GPU
257 // GFX9+.
259 s_endpgm_ordered_ps_done
260 // GFX6-8: error: instruction not supported on this GPU
262 // GFX8+.
264 s_wakeup
265 // GFX6-7: error: instruction not supported on this GPU
267 s_endpgm_saved
268 // GFX6-7: error: instruction not supported on this GPU
270 //===----------------------------------------------------------------------===//
271 // DPP8.
272 //===----------------------------------------------------------------------===//
274 v_mov_b32_dpp v5, v1 dpp8:[0,1,2,3,4,5,6,7]
275 // GFX6-9: error: not a valid operand