fix PR4963: folding insertvalue would sometimes turn a packed struct into
[llvm/avr.git] / test / MC / AsmParser / labels.s
blob53da7edf97cb64ac33f6914d9b3d820c4489af07
1 // RUN: llvm-mc -triple i686-apple-darwin10 %s | FileCheck %s
3 .data
4 // CHECK: a:
5 a:
6 .long 0
7 // CHECK: b:
8 "b":
9 .long 0
10 // CHECK: a$b:
11 "a$b":
12 .long 0
14 .text
15 foo:
16 // CHECK: addl $24, a$b(%eax)
17 addl $24, "a$b"(%eax)
18 // CHECK: addl $24, a$b+10(%eax)
19 addl $24, ("a$b" + 10)(%eax)
21 // CHECK: b$c = 10
22 "b$c" = 10
23 // CHECK: addl $b$c, %eax
24 addl "b$c", %eax
26 // CHECK: "a 0" = 11
27 .set "a 0", 11
29 // CHECK: .long "a 0"
30 .long "a 0"
32 // XXCHCK: .section "a 1,a 2"
33 //.section "a 1", "a 2"
35 // CHECK: .globl "a 3"
36 .globl "a 3"
38 // CHECK: .weak "a 4"
39 .weak "a 4"
41 // CHECK: .desc "a 5",1
42 .desc "a 5", 1
44 // CHECK: .comm "a 6",1
45 .comm "a 6", 1
47 // CHECK: .zerofill __DATA,__bss,"a 7",1,0
48 .lcomm "a 7", 1
50 // FIXME: We don't bother to support .lsym.
52 // CHECX: .lsym "a 8",1
53 // .lsym "a 8", 1
55 // CHECK: "a 9" = a-b
56 .set "a 9", a - b
58 // CHECK: .long "a 9"
59 .long "a 9"