diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-31 21:55:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-31 21:55:09 +0000 |
commit | 76c4d7696c1eb566d53467a76024c5fdadd448e4 (patch) | |
tree | 9268553718430fe128cdf74a169e6707d9d51d1b /test/MC | |
parent | 7a01e959156ba4e0a15b45a1f153f67d1646c0a5 (diff) | |
download | external_llvm-76c4d7696c1eb566d53467a76024c5fdadd448e4.zip external_llvm-76c4d7696c1eb566d53467a76024c5fdadd448e4.tar.gz external_llvm-76c4d7696c1eb566d53467a76024c5fdadd448e4.tar.bz2 |
llvm-mc: Support quoted identifiers.
- Uses MCAsmToken::getIdentifier which returns the (sub)string representing the
meaningfull contents a string or identifier token.
- Directives aren't done yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AsmParser/labels.s | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/MC/AsmParser/labels.s b/test/MC/AsmParser/labels.s new file mode 100644 index 0000000..f429b3b --- /dev/null +++ b/test/MC/AsmParser/labels.s @@ -0,0 +1,26 @@ +// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s + + .data: +// CHECK: a: +a: + .long 0 +// CHECK: b: +"b": + .long 0 +// FIXME(quoting): CHECK: a$b: +"a$b": + .long 0 + + .text: +foo: +// FIXME(quoting): CHECK: val:a$b + addl $24, "a$b"(%eax) +// FIXME(quoting): CHECK: val:a$b + 10 + addl $24, ("a$b" + 10)(%eax) + +// FIXME(quoting): CHECK: b$c = 10 +"b$c" = 10 +// FIXME(quoting): CHECK: val:10 + addl "b$c", %eax + + |