2009-07-31 21:55:09 +00:00
|
|
|
// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
|
|
|
|
2009-07-31 23:13:12 +00:00
|
|
|
.data
|
2009-07-31 21:55:09 +00:00
|
|
|
// CHECK: a:
|
|
|
|
a:
|
|
|
|
.long 0
|
|
|
|
// CHECK: b:
|
|
|
|
"b":
|
|
|
|
.long 0
|
2009-07-31 23:04:32 +00:00
|
|
|
// CHECK: "a$b":
|
2009-07-31 21:55:09 +00:00
|
|
|
"a$b":
|
|
|
|
.long 0
|
|
|
|
|
2009-07-31 23:13:12 +00:00
|
|
|
.text
|
2009-07-31 21:55:09 +00:00
|
|
|
foo:
|
2009-07-31 23:04:32 +00:00
|
|
|
// CHECK: val:"a$b"
|
2009-07-31 21:55:09 +00:00
|
|
|
addl $24, "a$b"(%eax)
|
2009-07-31 23:04:32 +00:00
|
|
|
// CHECK: val:"a$b" + 10
|
2009-07-31 21:55:09 +00:00
|
|
|
addl $24, ("a$b" + 10)(%eax)
|
|
|
|
|
2009-07-31 23:04:32 +00:00
|
|
|
// CHECK: "b$c" = 10
|
2009-07-31 21:55:09 +00:00
|
|
|
"b$c" = 10
|
2009-07-31 23:04:32 +00:00
|
|
|
// CHECK: val:10
|
2009-07-31 21:55:09 +00:00
|
|
|
addl "b$c", %eax
|
|
|
|
|
|
|
|
|
2009-08-01 00:48:30 +00:00
|
|
|
// CHECK: set "a 0", 11
|
|
|
|
.set "a 0", 11
|
|
|
|
// CHECK: .long 11
|
|
|
|
.long "a 0"
|
|
|
|
|
2009-08-08 23:39:42 +00:00
|
|
|
// XXCHCK: .section "a 1,a 2"
|
|
|
|
//.section "a 1", "a 2"
|
2009-08-01 00:48:30 +00:00
|
|
|
|
|
|
|
// CHECK: .globl "a 3"
|
|
|
|
.globl "a 3"
|
|
|
|
|
|
|
|
// CHECK: .weak "a 4"
|
|
|
|
.weak "a 4"
|
|
|
|
|
|
|
|
// CHECK: .desc "a 5",1
|
|
|
|
.desc "a 5", 1
|
|
|
|
|
|
|
|
// CHECK: .comm "a 6",1
|
|
|
|
.comm "a 6", 1
|
|
|
|
|
|
|
|
// CHECK: .lcomm "a 7",1
|
|
|
|
.lcomm "a 7", 1
|
|
|
|
|
|
|
|
// CHECK: .lsym "a 8",1
|
|
|
|
.lsym "a 8", 1
|