[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AsmParser / macros-darwin.s
blobe22038e7d1b29b3e7158959451a68c80d420f2b4
1 // RUN: not llvm-mc -triple i386-apple-darwin10 %s 2> %t.err | FileCheck %s
2 // RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
4 .macro .test0
5 .macrobody0
6 .endmacro
7 .macro .test1
8 .test0
9 .endmacro
11 .test1
12 // CHECK-ERRORS: <instantiation>:1:1: error: unknown directive
13 // CHECK-ERRORS-NEXT: macrobody0
14 // CHECK-ERRORS-NEXT: ^
15 // CHECK-ERRORS: <instantiation>:1:1: note: while in macro instantiation
16 // CHECK-ERRORS-NEXT: .test0
17 // CHECK-ERRORS-NEXT: ^
18 // CHECK-ERRORS: 11:1: note: while in macro instantiation
19 // CHECK-ERRORS-NEXT: .test1
20 // CHECK-ERRORS-NEXT: ^
22 .macro test2
23 .byte $0
24 .endmacro
25 // CHECK: .byte 10
26 test2 10
28 .macro test3
29 .globl "$0 $1 $2 $$3 $n"
30 .endmacro
32 // CHECK: .globl "1 23 $3 2"
33 test3 1, 2 3
35 // CHECK: .globl "1 (23) $3 2"
36 test3 1, (2 3)
38 // CHECK: .globl "12 $3 1"
39 test3 1 2
41 .macro test4
42 .globl "$0 -- $1"
43 .endmacro
45 // CHECK: .globl "(ab)(,)) -- (cd)"
46 test4 (a b)(,)),(cd)
48 // CHECK: .globl "(ab)(,)) -- (cd)"
49 test4 (a b)(,)),(cd)
51 .macro test5 _a
52 .globl "\_a"
53 .endm
55 // CHECK: .globl zed1
56 test5 zed1
58 .macro test6 $a
59 .globl "\$a"
60 .endm
62 // CHECK: .globl zed2
63 test6 zed2
65 .macro test7 .a
66 .globl "\.a"
67 .endm
69 // CHECK: .globl zed3
70 test7 zed3
72 .macro test8 _a, _b, _c
73 .globl "\_a,\_b,\_c"
74 .endmacro
76 .macro test9 _a _b _c
77 .globl "\_a \_b \_c"
78 .endmacro
80 // CHECK: .globl "a,b,c"
81 test8 a, b, c
82 // CHECK: .globl "%1,%2,%3"
83 test8 %1, %2, %3 #a comment
84 // CHECK: .globl "x-y,z,1"
85 test8 x - y, z, 1
86 // CHECK: .globl "1 2 3"
87 test9 1, 2,3
89 // CHECK: .globl "1,23,"
90 test8 1,2 3
92 // CHECK: .globl "12,3,"
93 test8 1 2, 3