2009-08-01 05:55:09 +08:00
|
|
|
// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
|
|
|
|
|
|
|
.data:
|
|
|
|
// CHECK: a:
|
|
|
|
a:
|
|
|
|
.long 0
|
|
|
|
// CHECK: b:
|
|
|
|
"b":
|
|
|
|
.long 0
|
2009-08-01 07:04:32 +08:00
|
|
|
// CHECK: "a$b":
|
2009-08-01 05:55:09 +08:00
|
|
|
"a$b":
|
|
|
|
.long 0
|
|
|
|
|
|
|
|
.text:
|
|
|
|
foo:
|
2009-08-01 07:04:32 +08:00
|
|
|
// CHECK: val:"a$b"
|
2009-08-01 05:55:09 +08:00
|
|
|
addl $24, "a$b"(%eax)
|
2009-08-01 07:04:32 +08:00
|
|
|
// CHECK: val:"a$b" + 10
|
2009-08-01 05:55:09 +08:00
|
|
|
addl $24, ("a$b" + 10)(%eax)
|
|
|
|
|
2009-08-01 07:04:32 +08:00
|
|
|
// CHECK: "b$c" = 10
|
2009-08-01 05:55:09 +08:00
|
|
|
"b$c" = 10
|
2009-08-01 07:04:32 +08:00
|
|
|
// CHECK: val:10
|
2009-08-01 05:55:09 +08:00
|
|
|
addl "b$c", %eax
|
|
|
|
|
|
|
|
|