1 # RUN: not llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32 -mattr=+soft-float 2>&1 |\
2 # RUN: FileCheck %s --check-prefix=32
3 # RUN: not llvm-mc %s -triple=mips-unknown-linux -mcpu=mips64 -mattr=+soft-float 2>&1 |\
4 # RUN: FileCheck %s --check-prefix=64
5 # RUN: not llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+soft-float 2>&1 |\
6 # RUN: FileCheck %s --check-prefix=R2
7 # RUN: not llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32r6 -mattr=+soft-float 2>&1 |\
8 # RUN: FileCheck %s --check-prefix=R6
12 # 64: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
14 # 64: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
17 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
19 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
21 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
23 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
25 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
27 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
29 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
31 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
33 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
35 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
37 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
39 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
40 msub.s $
f2, $
f2, $
f2, $
f2
41 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
43 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
44 nmadd.s $
f2, $
f2, $
f2, $
f2
45 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
46 nmsub.s $
f2, $
f2, $
f2, $
f2
47 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
49 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
51 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
53 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
55 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
57 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
59 # R2: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
62 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
64 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
66 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
68 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
69 cmp.af.d $
f2, $
f2, $
f2
70 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
71 cmp.af.s $
f2, $
f2, $
f2
72 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
73 cmp.eq.d $
f2, $
f2, $
f2
74 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
75 cmp.eq.s $
f2, $
f2, $
f2
76 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
77 cmp.le.d $
f2, $
f2, $
f2
78 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
79 cmp.le.s $
f2, $
f2, $
f2
80 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
81 cmp.lt.d $
f2, $
f2, $
f2
82 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
83 cmp.lt.s $
f2, $
f2, $
f2
84 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
85 cmp.saf.d $
f2, $
f2, $
f2
86 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
87 cmp.saf.s $
f2, $
f2, $
f2
88 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
89 cmp.seq.d $
f2, $
f2, $
f2
90 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
91 cmp.seq.s $
f2, $
f2, $
f2
92 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
93 cmp.
sle.d $
f2, $
f2, $
f2
94 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
95 cmp.
sle.s $
f2, $
f2, $
f2
96 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
97 cmp.slt.d $
f2, $
f2, $
f2
98 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
99 cmp.slt.s $
f2, $
f2, $
f2
100 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
101 cmp.sueq.d $
f2, $
f2, $
f2
102 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
103 cmp.sueq.s $
f2, $
f2, $
f2
104 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
105 cmp.sule.d $
f2, $
f2, $
f2
106 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
107 cmp.sule.s $
f2, $
f2, $
f2
108 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
109 cmp.sult.d $
f2, $
f2, $
f2
110 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
111 cmp.sult.s $
f2, $
f2, $
f2
112 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
113 cmp.sun.d $
f2, $
f2, $
f2
114 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
115 cmp.sun.s $
f2, $
f2, $
f2
116 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
117 cmp.ueq.d $
f2, $
f2, $
f2
118 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
119 cmp.ueq.s $
f2, $
f2, $
f2
120 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
121 cmp.ule.d $
f2, $
f2, $
f2
122 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
123 cmp.ule.s $
f2, $
f2, $
f2
124 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
125 cmp.ult.d $
f2, $
f2, $
f2
126 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
127 cmp.ult.s $
f2, $
f2, $
f2
128 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
129 cmp.un.d $
f2, $
f2, $
f2
130 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
131 cmp.un.s $
f2, $
f2, $
f2
132 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
133 maddf.d $
f2, $
f2, $
f2
134 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
135 maddf.s $
f2, $
f2, $
f2
136 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
138 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
140 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
142 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
144 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
146 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
148 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
150 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
152 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
153 msubf.d $
f2, $
f2, $
f2
154 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
155 msubf.s $
f2, $
f2, $
f2
156 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
158 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
160 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
162 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
164 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
165 seleqz.d $
f2, $
f2, $
f2
166 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
167 seleqz.s $
f2, $
f2, $
f2
168 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
169 selnez.d $
f2, $
f2, $
f2
170 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
171 selnez.s $
f2, $
f2, $
f2
172 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
175 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
177 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
179 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
181 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
183 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
185 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
187 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
189 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
191 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
193 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
195 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
197 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
199 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
201 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
203 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
205 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
207 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
209 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
211 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
213 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
215 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
217 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
219 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
221 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
223 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
225 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
227 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
229 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
231 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
233 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
235 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
237 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
239 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
241 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
243 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
245 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
247 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
249 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
251 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
253 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
255 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
257 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
259 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
261 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
263 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
265 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
267 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
269 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
271 # FIXME: LDC1 is correctly rejected but the wrong error message is emitted.
272 # 32: :[[@LINE-2]]:19: error: invalid operand for instruction
274 # FIXME: LWC1 is correctly rejected but the wrong error message is emitted.
275 # 32: :[[@LINE-2]]:19: error: invalid operand for instruction
276 madd.s $
f2, $
f2, $
f2, $
f2
277 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
279 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
281 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
283 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
284 movf.d $
f2, $
f2, $fcc2
285 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
286 movf.s $
f2, $
f2, $fcc5
287 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
289 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
291 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
292 movt.d $
f2, $
f2, $fcc0
293 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
294 movt.s $
f2, $
f2, $fcc1
295 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
297 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
299 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
301 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
303 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
305 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
307 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
309 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
311 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
313 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
315 # FIXME: SDC1 is correctly rejected but the wrong error message is emitted.
316 # 32: :[[@LINE-2]]:19: error: invalid operand for instruction
318 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
320 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
322 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
324 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
326 # FIXME: SWC1 is correctly rejected but the wrong error message is emitted.
327 # 32: :[[@LINE-2]]:19: error: invalid operand for instruction
329 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
331 # 32: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled