brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · e22038e Raw
94 lines · plain
1// RUN: not llvm-mc -triple i386-apple-darwin10 %s 2> %t.err | FileCheck %s2// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err3 4.macro .test05.macrobody06.endmacro7.macro .test18.test09.endmacro10 11.test112// CHECK-ERRORS: <instantiation>:1:1: error: unknown directive13// CHECK-ERRORS-NEXT: macrobody014// CHECK-ERRORS-NEXT: ^15// CHECK-ERRORS: <instantiation>:1:1: note: while in macro instantiation16// CHECK-ERRORS-NEXT: .test017// CHECK-ERRORS-NEXT: ^18// CHECK-ERRORS: 11:1: note: while in macro instantiation19// CHECK-ERRORS-NEXT: .test120// CHECK-ERRORS-NEXT: ^21 22.macro test223.byte $024.endmacro25// CHECK: .byte 1026test2 1027 28.macro test329.globl "$0 $1 $2 $$3 $n"30.endmacro31 32// CHECK: .globl "1 23  $3 2"33test3 1, 2 334 35// CHECK: .globl	"1 (23)  $3 2"36test3 1, (2 3)37 38// CHECK: .globl "12  $3 1"39test3 1 240 41.macro test442.globl "$0 -- $1"43.endmacro44 45// CHECK: .globl  "(ab)(,)) -- (cd)"46test4 (a b)(,)),(cd)47 48// CHECK: .globl  "(ab)(,)) -- (cd)"49test4 (a b)(,)),(cd)50 51.macro test5 _a52.globl "\_a"53.endm54 55// CHECK: .globl zed156test5 zed157 58.macro test6 $a59.globl "\$a"60.endm61 62// CHECK: .globl zed263test6 zed264 65.macro test7 .a66.globl "\.a"67.endm68 69// CHECK: .globl zed370test7 zed371 72.macro test8 _a, _b, _c73.globl "\_a,\_b,\_c"74.endmacro75 76.macro test9 _a _b _c77.globl "\_a \_b \_c"78.endmacro79 80// CHECK: .globl  "a,b,c"81test8 a, b, c82// CHECK: .globl  "%1,%2,%3"83test8 %1, %2, %3 #a comment84// CHECK: .globl "x-y,z,1"85test8 x - y, z, 186// CHECK: .globl  "1 2 3"87test9 1, 2,388 89// CHECK: .globl "1,23,"90test8 1,2 391 92// CHECK: .globl "12,3,"93test8 1 2, 394