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
6 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
7 .equ ident1, 0 // EOL COMMENT
8 // CHECK
: [[#@LINE+1]]:19: error: expected newline
10 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
11 .equiv ident2, 0 // EOL COMMENT
12 // CHECK
: [[#@LINE+1]]:19: error: expected newline
14 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
15 .set ident3, 0 // EOL COMMENT
16 // CHECK
: :[[#@LINE+1]]:20: error: unexpected token
18 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
19 .ascii "string1" // EOL COMMENT
20 // CHECK
: :[[#@LINE+1]]:20: error: unexpected token
22 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
23 .asciz "string2" // EOL COMMENT
24 // CHECK
: :[[#@LINE+1]]:20: error: unexpected token
26 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
27 .string "string3" // EOL COMMENT
28 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
30 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
31 .byte 0 // EOL COMMENT
32 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
34 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
35 .dc.b 0 // EOL COMMENT
36 // CHECK
: :[[#@LINE+1]]:8: error: unexpected token
38 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
39 .dc.b 0 // EOL COMMENT
40 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
42 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
43 .dc.w 0 // EOL COMMENT
44 // CHECK
: :[[#@LINE+1]]:11: error: unexpected token
46 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
47 .short 0 // EOL COMMENT
48 // CHECK
: :[[#@LINE+1]]:11: error: unexpected token
50 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
51 .value 0 // EOL COMMENT
52 // CHECK
: :[[#@LINE+1]]:11: error: unexpected token
54 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
55 .2byte
0 // EOL COMMENT
56 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
58 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
59 .long 0 // EOL COMMENT
60 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
62 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
64 // CHECK
: :[[#@LINE+1]]:11: error: unexpected token
66 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
67 .4byte
0 // EOL COMMENT
68 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
70 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
71 .dc.l 0 // EOL COMMENT
72 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
74 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
75 .quad 0 // EOL COMMENT
76 // CHECK
: :[[#@LINE+1]]:11: error: unexpected token
78 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
79 .8byte
0 // EOL COMMENT
80 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
82 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
83 .dc.a 0 // EOL COMMENT
84 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
86 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
87 .octa 0 // EOL COMMENT
88 // CHECK
: :[[#@LINE+1]]:12: error: unexpected token
90 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
91 .single 0 // EOL COMMENT
92 // CHECK
: :[[#@LINE+1]]:11: error: unexpected token
94 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
95 .float 0 // EOL COMMENT
96 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
98 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
99 .dc.s 0 // EOL COMMENT
100 // CHECK
: :[[#@LINE+1]]:12: error: unexpected token
102 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
103 .double 0 // EOL COMMENT
104 // CHECK
: :[[#@LINE+1]]:10: error: unexpected token
106 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
107 .dc.d 0 // EOL COMMENT
108 // CHECK
: [[#@LINE+1]]:13: error: expected newline
110 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
111 .fill 1, 1 // EOL COMMENT
112 // CHECK
: [[#@LINE+1]]:17: error: expected newline
114 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
115 .fill 1, 1, 10 // EOL COMMENT
116 // CHECK
: [[#@LINE+1]]:16: error: expected newline
118 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
119 .org 1 // EOL COMMENT
120 // CHECK
: [[#@LINE+1]]:11: error: expected newline
122 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
123 .align 0 // EOL COMMENT
124 // CHECK
: [[#@LINE+1]]:13: error: expected newline
126 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
127 .align32 0 // EOL COMMENT
128 // CHECK
: [[#@LINE+1]]:12: error: expected newline
130 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
131 .balign 0 // EOL COMMENT
132 // CHECK
: [[#@LINE+1]]:13: error: expected newline
134 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
135 .balignw 0 // EOL COMMENT
136 // CHECK
: [[#@LINE+1]]:13: error: expected newline
138 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
139 .balignl 0 // EOL COMMENT
140 // CHECK
: [[#@LINE+1]]:13: error: expected newline
142 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
143 .p2align 0 // EOL COMMENT
144 // CHECK
: [[#@LINE+1]]:14: error: expected newline
146 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
147 .p2alignw 0 // EOL COMMENT
148 // CHECK
: [[#@LINE+1]]:14: error: expected newline
150 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
151 .p2alignl 0 // EOL COMMENT
152 // CHECK
: [[#@LINE+1]]:8: error: expected newline
154 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
156 // CHECK
: [[#@LINE+1]]:10: error: expected newline
158 // CHECK-
NOT: [[#@LINE+1]]:{{[0-9]+}}: error:
159 .line 0 // EOL COMMENT
162 // CHECK
: :[[#@LINE+1]]:16: error: unexpected token
164 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
165 .loc 1 // EOL COMMENT
167 // CHECK
: :[[#@LINE+1]]:21: error: unexpected token
169 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
170 .cv_file 1 "hello" // EOL COMMENT
173 // CHECK
: :[[#@LINE+1]]:14: error: unexpected token
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
185 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
186 .sleb128 // EOL COMMENT
187 // CHECK
: :[[#@LINE+1]]:13: error: unexpected token
189 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
190 .sleb128 0 // EOL COMMENT
192 // CHECK
: :[[#@LINE+1]]:11: error: invalid token in expression
194 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
195 .uleb128 // EOL COMMENT
196 // CHECK
: :[[#@LINE+1]]:13: error: unexpected token
198 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
199 .uleb128 0 // EOL COMMENT
200 // CHECK
: :[[#@LINE+1]]:31: error: unexpected token
202 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
203 .globl a1 // EOL COMMENT
204 // CHECK
: :[[#@LINE+1]]:31: error: unexpected token
206 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
207 .global a2 // EOL COMMENT
208 // CHECK
: :[[#@LINE+1]]:31: error: unexpected token
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
218 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
219 .private_extern a5 // EOL COMMENT
220 // CHECK
: :[[#@LINE+1]]:31: error: unexpected token
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
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
238 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
239 .warning // EOL COMMENT
240 // CHECK
: [[#@LINE+1]]:21: error: expected newline
242 // CHECK-
NOT: [[#@LINE+1]]:{{[0-9]+}}: error:
243 .warning "warning" // EOL COMMENT
246 // CHECK
: :[[#@LINE+1]]:17: error: unexpected token
248 // CHECK-
NOT: :[[#@LINE+1]]:{{[0-9]+}}: error:
249 .cfi_startproc // EOL COMMENT
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