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
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
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
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
18 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
19 .ascii "string1" // EOL COMMENT
20 // CHECK
: [[@LINE+
1]]:20: error
: unexpected token in
'.asciz' directive
22 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
23 .asciz "string2" // EOL COMMENT
24 // CHECK
: [[@LINE+
1]]:20: error
: unexpected token in
'.string' directive
26 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
27 .string "string3" // EOL COMMENT
28 // CHECK
: [[@LINE+
1]]:10: error
: unexpected token in
'.byte' directive
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
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
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
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
46 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
47 .short 0 // EOL COMMENT
48 // CHECK
: [[@LINE+
1]]:11: error
: unexpected token in
'.value' directive
50 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
51 .value 0 // EOL COMMENT
52 // CHECK
: [[@LINE+
1]]:11: error
: unexpected token in
'.2byte' directive
54 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
55 .2byte
0 // EOL COMMENT
56 // CHECK
: [[@LINE+
1]]:10: error
: unexpected token in
'.long' directive
58 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
59 .long 0 // EOL COMMENT
60 // CHECK
: [[@LINE+
1]]:10: error
: unexpected token in
'.int' directive
62 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
64 // CHECK
: [[@LINE+
1]]:11: error
: unexpected token in
'.4byte' directive
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
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
74 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
75 .quad 0 // EOL COMMENT
76 // CHECK
: [[@LINE+
1]]:11: error
: unexpected token in
'.8byte' directive
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
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
86 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
87 .octa 0 // EOL COMMENT
88 // CHECK
: [[@LINE+
1]]:12: error
: unexpected token in
'.single' directive
90 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
91 .single 0 // EOL COMMENT
92 // CHECK
: [[@LINE+
1]]:11: error
: unexpected token in
'.float' directive
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
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
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
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
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
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
118 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
119 .org 1 // EOL COMMENT
120 // CHECK
: [[@LINE+
1]]:11: error
: unexpected token in directive
122 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
123 .align 0 // EOL COMMENT
124 // CHECK
: [[@LINE+
1]]:13: error
: unexpected token in directive
126 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
127 .align32 0 // EOL COMMENT
128 // CHECK
: [[@LINE+
1]]:12: error
: unexpected token in directive
130 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
131 .balign 0 // EOL COMMENT
132 // CHECK
: [[@LINE+
1]]:13: error
: unexpected token in directive
134 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
135 .balignw 0 // EOL COMMENT
136 // CHECK
: [[@LINE+
1]]:13: error
: unexpected token in directive
138 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
139 .balignl 0 // EOL COMMENT
140 // CHECK
: [[@LINE+
1]]:13: error
: unexpected token in directive
142 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
143 .p2align 0 // EOL COMMENT
144 // CHECK
: [[@LINE+
1]]:14: error
: unexpected token in directive
146 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
147 .p2alignw 0 // EOL COMMENT
148 // CHECK
: [[@LINE+
1]]:14: error
: unexpected token in directive
150 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
151 .p2alignl 0 // EOL COMMENT
152 // CHECK
: [[@LINE+
1]]:8: error
: unexpected token in
'.line' directive
154 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
156 // CHECK
: [[@LINE+
1]]:10: error
: unexpected token in
'.line' directive
158 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
159 .line 0 // EOL COMMENT
162 // CHECK
: [[@LINE+
1]]:16: error
: unexpected token in
'.loc' directive
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
169 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
170 .cv_file 1 "hello" // EOL COMMENT
173 // CHECK
: [[@LINE+
1]]:14: error
: unexpected token in
'.cv_loc' directive
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
185 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
186 .sleb128 // EOL COMMENT
187 // CHECK
: [[@LINE+
1]]:13: error
: unexpected token in directive
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
194 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
195 .uleb128 // EOL COMMENT
196 // CHECK
: [[@LINE+
1]]:13: error
: unexpected token in directive
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 in directive
206 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
207 .global a2 // EOL COMMENT
208 // CHECK
: [[@LINE+
1]]:31: error
: unexpected token in directive
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
218 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
219 .private_extern a5 // EOL COMMENT
220 // CHECK
: [[@LINE+
1]]:31: error
: unexpected token in directive
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
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
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
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
248 // CHECK-
NOT: [[@LINE+
1]]:{{[0-9]+}}: error
:
249 .cfi_startproc // EOL COMMENT
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