Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / llvm / test / MC / AsmParser / AArch64 / directive-parse-err.s
blob02cdfd7829198033b83e9e10bbf013197c0df5f3
1 // RUN: not llvm-mc -triple aarch64 %s 2>&1 | FileCheck %s
2 // RUN: not llvm-mc -triple aarch64 %s 2>&1 | grep "error:" | count 60
4 // CHECK: [[#@LINE+1]]:19: error: expected newline
5 .equ ident1, 0 $
6 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
7 .equ ident1, 0 // EOL COMMENT
8 // CHECK: [[#@LINE+1]]:19: error: expected newline
9 .equiv ident2, 0 $
10 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
11 .equiv ident2, 0 // EOL COMMENT
12 // CHECK: [[#@LINE+1]]:19: error: expected newline
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
17 .ascii "string1" $
18 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
19 .ascii "string1" // EOL COMMENT
20 // CHECK: :[[#@LINE+1]]:20: error: unexpected token
21 .asciz "string2" $
22 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
23 .asciz "string2" // EOL COMMENT
24 // CHECK: :[[#@LINE+1]]:20: error: unexpected token
25 .string "string3" $
26 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
27 .string "string3" // EOL COMMENT
28 // CHECK: :[[#@LINE+1]]:10: error: unexpected token
29 .byte 0 $
30 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
31 .byte 0 // EOL COMMENT
32 // CHECK: :[[#@LINE+1]]:10: error: unexpected token
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
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
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
45 .short 0 $
46 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
47 .short 0 // EOL COMMENT
48 // CHECK: :[[#@LINE+1]]:11: error: unexpected token
49 .value 0 $
50 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
51 .value 0 // EOL COMMENT
52 // CHECK: :[[#@LINE+1]]:11: error: unexpected token
53 .2byte 0 $
54 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
55 .2byte 0 // EOL COMMENT
56 // CHECK: :[[#@LINE+1]]:10: error: unexpected token
57 .long 0 $
58 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
59 .long 0 // EOL COMMENT
60 // CHECK: :[[#@LINE+1]]:10: error: unexpected token
61 .int 0 $
62 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
63 .int 0 // EOL COMMENT
64 // CHECK: :[[#@LINE+1]]:11: error: unexpected token
65 .4byte 0 $
66 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
67 .4byte 0 // EOL COMMENT
68 // CHECK: :[[#@LINE+1]]:10: error: unexpected token
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
73 .quad 0 $
74 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
75 .quad 0 // EOL COMMENT
76 // CHECK: :[[#@LINE+1]]:11: error: unexpected token
77 .8byte 0 $
78 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
79 .8byte 0 // EOL COMMENT
80 // CHECK: :[[#@LINE+1]]:10: error: unexpected token
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
85 .octa 0 $
86 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
87 .octa 0 // EOL COMMENT
88 // CHECK: :[[#@LINE+1]]:12: error: unexpected token
89 .single 0 $
90 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
91 .single 0 // EOL COMMENT
92 // CHECK: :[[#@LINE+1]]:11: error: unexpected token
93 .float 0 $
94 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
95 .float 0 // EOL COMMENT
96 // CHECK: :[[#@LINE+1]]:10: error: unexpected token
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
101 .double 0 $
102 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
103 .double 0 // EOL COMMENT
104 // CHECK: :[[#@LINE+1]]:10: error: unexpected token
105 .dc.d 0 $
106 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
107 .dc.d 0 // EOL COMMENT
108 // CHECK: [[#@LINE+1]]:13: error: expected newline
109 .fill 1, 1 $
110 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
111 .fill 1, 1 // EOL COMMENT
112 // CHECK: [[#@LINE+1]]:17: error: expected newline
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: expected newline
117 .org 1 $
118 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
119 .org 1 // EOL COMMENT
120 // CHECK: [[#@LINE+1]]:11: error: expected newline
121 .align 0 $
122 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
123 .align 0 // EOL COMMENT
124 // CHECK: [[#@LINE+1]]:13: error: expected newline
125 .align32 0 $
126 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
127 .align32 0 // EOL COMMENT
128 // CHECK: [[#@LINE+1]]:12: error: expected newline
129 .balign 0 $
130 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
131 .balign 0 // EOL COMMENT
132 // CHECK: [[#@LINE+1]]:13: error: expected newline
133 .balignw 0 $
134 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
135 .balignw 0 // EOL COMMENT
136 // CHECK: [[#@LINE+1]]:13: error: expected newline
137 .balignl 0 $
138 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
139 .balignl 0 // EOL COMMENT
140 // CHECK: [[#@LINE+1]]:13: error: expected newline
141 .p2align 0 $
142 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
143 .p2align 0 // EOL COMMENT
144 // CHECK: [[#@LINE+1]]:14: error: expected newline
145 .p2alignw 0 $
146 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
147 .p2alignw 0 // EOL COMMENT
148 // CHECK: [[#@LINE+1]]:14: error: expected newline
149 .p2alignl 0 $
150 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
151 .p2alignl 0 // EOL COMMENT
152 // CHECK: [[#@LINE+1]]:8: error: expected newline
153 .line $
154 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
155 .line // EOL COMMENT
156 // CHECK: [[#@LINE+1]]:10: error: expected newline
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
163 .loc 1 $
164 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
165 .loc 1 // EOL COMMENT
167 // CHECK: :[[#@LINE+1]]:21: error: unexpected token
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
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: expected newline
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
184 .sleb128 $
185 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
186 .sleb128 // EOL COMMENT
187 // CHECK: :[[#@LINE+1]]:13: error: unexpected token
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
193 .uleb128 $
194 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
195 .uleb128 // EOL COMMENT
196 // CHECK: :[[#@LINE+1]]:13: error: unexpected token
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
205 .global a2 $
206 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
207 .global a2 // EOL COMMENT
208 // CHECK: :[[#@LINE+1]]:31: error: unexpected token
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
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
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
221 .reference a6 $
222 // CHECK-NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
223 .reference a6 // EOL COMMENT
224 // CHECK: :[[#@LINE+1]]:31: error: unexpected token
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
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
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 newline
241 .warning "warning" $
242 // CHECK-NOT: [[#@LINE+1]]:{{[0-9]+}}: error:
243 .warning "warning" // EOL COMMENT
246 // CHECK: :[[#@LINE+1]]:17: error: unexpected token
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: expected newline
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: