[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AsmParser / AArch64 / directive-parse-err.s
blob5ddf6e3e0f91984f16c4fd1fa92d2ade30805371
1 // RUN: not llvm-mc -triple aarch64-none-eabi %s 2>&1 | FileCheck %s
2 // RUN: not llvm-mc -triple aarch64-none-eabi %s 2>&1 | grep "error:" | count 60
4 // CHECK: [[@LINE+1]]:19: error: unexpected token in '.equ' directive
5 .equ ident1, 0 $
6 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
7 .equ ident1, 0 // EOL COMMENT
8 // CHECK: [[@LINE+1]]:19: error: unexpected token in '.equiv' directive
9 .equiv ident2, 0 $
10 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
11 .equiv ident2, 0 // EOL COMMENT
12 // CHECK: [[@LINE+1]]:19: error: unexpected token in '.set' directive
13 .set ident3, 0 $
14 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
15 .set ident3, 0 // EOL COMMENT
16 // CHECK: [[@LINE+1]]:20: error: unexpected token in '.ascii' directive
17 .ascii "string1" $
18 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
19 .ascii "string1" // EOL COMMENT
20 // CHECK: [[@LINE+1]]:20: error: unexpected token in '.asciz' directive
21 .asciz "string2" $
22 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
23 .asciz "string2" // EOL COMMENT
24 // CHECK: [[@LINE+1]]:20: error: unexpected token in '.string' directive
25 .string "string3" $
26 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
27 .string "string3" // EOL COMMENT
28 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.byte' directive
29 .byte 0 $
30 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
31 .byte 0 // EOL COMMENT
32 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.b' directive
33 .dc.b 0 $
34 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
35 .dc.b 0 // EOL COMMENT
36 // CHECK: [[@LINE+1]]:8: error: unexpected token in '.dc' directive
37 .dc 0 $
38 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
39 .dc.b 0 // EOL COMMENT
40 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.w' directive
41 .dc.w 0 $
42 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
43 .dc.w 0 // EOL COMMENT
44 // CHECK: [[@LINE+1]]:11: error: unexpected token in '.short' directive
45 .short 0 $
46 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
47 .short 0 // EOL COMMENT
48 // CHECK: [[@LINE+1]]:11: error: unexpected token in '.value' directive
49 .value 0 $
50 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
51 .value 0 // EOL COMMENT
52 // CHECK: [[@LINE+1]]:11: error: unexpected token in '.2byte' directive
53 .2byte 0 $
54 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
55 .2byte 0 // EOL COMMENT
56 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.long' directive
57 .long 0 $
58 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
59 .long 0 // EOL COMMENT
60 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.int' directive
61 .int 0 $
62 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
63 .int 0 // EOL COMMENT
64 // CHECK: [[@LINE+1]]:11: error: unexpected token in '.4byte' directive
65 .4byte 0 $
66 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
67 .4byte 0 // EOL COMMENT
68 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.l' directive
69 .dc.l 0 $
70 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
71 .dc.l 0 // EOL COMMENT
72 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.quad' directive
73 .quad 0 $
74 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
75 .quad 0 // EOL COMMENT
76 // CHECK: [[@LINE+1]]:11: error: unexpected token in '.8byte' directive
77 .8byte 0 $
78 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
79 .8byte 0 // EOL COMMENT
80 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.a' directive
81 .dc.a 0 $
82 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
83 .dc.a 0 // EOL COMMENT
84 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.octa' directive
85 .octa 0 $
86 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
87 .octa 0 // EOL COMMENT
88 // CHECK: [[@LINE+1]]:12: error: unexpected token in '.single' directive
89 .single 0 $
90 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
91 .single 0 // EOL COMMENT
92 // CHECK: [[@LINE+1]]:11: error: unexpected token in '.float' directive
93 .float 0 $
94 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
95 .float 0 // EOL COMMENT
96 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.s' directive
97 .dc.s 0 $
98 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
99 .dc.s 0 // EOL COMMENT
100 // CHECK: [[@LINE+1]]:12: error: unexpected token in '.double' directive
101 .double 0 $
102 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
103 .double 0 // EOL COMMENT
104 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.d' directive
105 .dc.d 0 $
106 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
107 .dc.d 0 // EOL COMMENT
108 // CHECK: [[@LINE+1]]:13: error: unexpected token in '.fill' directive
109 .fill 1, 1 $
110 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
111 .fill 1, 1 // EOL COMMENT
112 // CHECK: [[@LINE+1]]:17: error: unexpected token in '.fill' directive
113 .fill 1, 1, 10 $
114 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
115 .fill 1, 1, 10 // EOL COMMENT
116 // CHECK: [[@LINE+1]]:16: error: unexpected token in '.org' directive
117 .org 1 $
118 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
119 .org 1 // EOL COMMENT
120 // CHECK: [[@LINE+1]]:11: error: unexpected token in directive
121 .align 0 $
122 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
123 .align 0 // EOL COMMENT
124 // CHECK: [[@LINE+1]]:13: error: unexpected token in directive
125 .align32 0 $
126 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
127 .align32 0 // EOL COMMENT
128 // CHECK: [[@LINE+1]]:12: error: unexpected token in directive
129 .balign 0 $
130 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
131 .balign 0 // EOL COMMENT
132 // CHECK: [[@LINE+1]]:13: error: unexpected token in directive
133 .balignw 0 $
134 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
135 .balignw 0 // EOL COMMENT
136 // CHECK: [[@LINE+1]]:13: error: unexpected token in directive
137 .balignl 0 $
138 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
139 .balignl 0 // EOL COMMENT
140 // CHECK: [[@LINE+1]]:13: error: unexpected token in directive
141 .p2align 0 $
142 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
143 .p2align 0 // EOL COMMENT
144 // CHECK: [[@LINE+1]]:14: error: unexpected token in directive
145 .p2alignw 0 $
146 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
147 .p2alignw 0 // EOL COMMENT
148 // CHECK: [[@LINE+1]]:14: error: unexpected token in directive
149 .p2alignl 0 $
150 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
151 .p2alignl 0 // EOL COMMENT
152 // CHECK: [[@LINE+1]]:8: error: unexpected token in '.line' directive
153 .line $
154 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
155 .line // EOL COMMENT
156 // CHECK: [[@LINE+1]]:10: error: unexpected token in '.line' directive
157 .line 0 $
158 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
159 .line 0 // EOL COMMENT
161 .file 1 "hello"
162 // CHECK: [[@LINE+1]]:16: error: unexpected token in '.loc' directive
163 .loc 1 $
164 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
165 .loc 1 // EOL COMMENT
167 // CHECK: [[@LINE+1]]:21: error: unexpected token in '.cv_file' directive
168 .cv_file 1 "hello" $
169 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
170 .cv_file 1 "hello" // EOL COMMENT
172 .cv_func_id 1
173 // CHECK: [[@LINE+1]]:14: error: unexpected token in '.cv_loc' directive
174 .cv_loc 1 1 $
175 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
176 .cv_loc 1 1 // EOL COMMENT
178 // CHECK: [[@LINE+1]]:28: error: unexpected token after '.bundle_lock' directive option
179 .bundle_lock align_to_end $
180 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
181 .bundle_lock align_to_end // EOL COMMENT
183 // CHECK: [[@LINE+1]]:11: error: invalid token in expression in directive
184 .sleb128 $
185 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
186 .sleb128 // EOL COMMENT
187 // CHECK: [[@LINE+1]]:13: error: unexpected token in directive
188 .sleb128 0 $
189 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
190 .sleb128 0 // EOL COMMENT
192 // CHECK: [[@LINE+1]]:11: error: invalid token in expression in directive
193 .uleb128 $
194 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
195 .uleb128 // EOL COMMENT
196 // CHECK: [[@LINE+1]]:13: error: unexpected token in directive
197 .uleb128 0 $
198 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
199 .uleb128 0 // EOL COMMENT
200 // CHECK: [[@LINE+1]]:31: error: unexpected token
201 .globl a1 $
202 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
203 .globl a1 // EOL COMMENT
204 // CHECK: [[@LINE+1]]:31: error: unexpected token in directive
205 .global a2 $
206 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
207 .global a2 // EOL COMMENT
208 // CHECK: [[@LINE+1]]:31: error: unexpected token in directive
209 .lazy_reference a3 $
210 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
211 .lazy_reference a3 // EOL COMMENT
212 // CHECK: [[@LINE+1]]:31: error: unexpected token in directive
213 .symbol_resolver a4 $
214 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
215 .symbol_resolver a4 // EOL COMMENT
216 // CHECK: [[@LINE+1]]:31: error: unexpected token in directive
217 .private_extern a5 $
218 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
219 .private_extern a5 // EOL COMMENT
220 // CHECK: [[@LINE+1]]:31: error: unexpected token in directive
221 .reference a6 $
222 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
223 .reference a6 // EOL COMMENT
224 // CHECK: [[@LINE+1]]:31: error: unexpected token in directive
225 .weak_definition a7 $
226 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
227 .weak_definition a7 // EOL COMMENT
228 // CHECK: [[@LINE+1]]:31: error: unexpected token in directive
229 .weak_reference a8 $
230 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
231 .weak_reference a8 // EOL COMMENT
232 // CHECK: [[@LINE+1]]:31: error: unexpected token in directive
233 .weak_def_can_be_hidden a9 $
234 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
235 .weak_def_can_be_hidden a9 // EOL COMMENT
236 // CHECK: [[@LINE+1]]:12: error: .warning argument must be a string
237 .warning $
238 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
239 .warning // EOL COMMENT
240 // CHECK: [[@LINE+1]]:21: error: expected end of statement in '.warning' directive
241 .warning "warning" $
242 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
243 .warning "warning" // EOL COMMENT
246 // CHECK: [[@LINE+1]]:17: error: unexpected token in '.cfi_startproc' directive
247 .cfi_startproc $
248 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
249 .cfi_startproc // EOL COMMENT
250 .cfi_endproc
251 // CHECK: [[@LINE+1]]:24: error: unexpected token in '.cfi_startproc' directive
252 .cfi_startproc simple $
253 // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
254 .cfi_startproc simple // EOL COMMENT
255 .cfi_endproc
258 // CHECK-NOT: error: