mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
35ee93b791
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77750 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
425 B
ArmAsm
27 lines
425 B
ArmAsm
// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
|
|
|
.data
|
|
// CHECK: a:
|
|
a:
|
|
.long 0
|
|
// CHECK: b:
|
|
"b":
|
|
.long 0
|
|
// CHECK: "a$b":
|
|
"a$b":
|
|
.long 0
|
|
|
|
.text
|
|
foo:
|
|
// CHECK: val:"a$b"
|
|
addl $24, "a$b"(%eax)
|
|
// CHECK: val:"a$b" + 10
|
|
addl $24, ("a$b" + 10)(%eax)
|
|
|
|
// CHECK: "b$c" = 10
|
|
"b$c" = 10
|
|
// CHECK: val:10
|
|
addl "b$c", %eax
|
|
|
|
|