diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-10-31 23:24:13 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-10-31 23:24:13 +0000 |
commit | 7dd4dc88921421cd2a1e6c1711689d5993106767 (patch) | |
tree | 0e52ec02d0fb18ca328f4b28ff7e8bd832865dc6 /test/MC/Markup | |
parent | a5526a9bffbd62a14d576f583c206a8a781cc2f1 (diff) | |
download | external_llvm-7dd4dc88921421cd2a1e6c1711689d5993106767.zip external_llvm-7dd4dc88921421cd2a1e6c1711689d5993106767.tar.gz external_llvm-7dd4dc88921421cd2a1e6c1711689d5993106767.tar.bz2 |
MC: Simple example parser for MC assembly markup.
Nothing fancy, just a simple demonstration parser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Markup')
-rw-r--r-- | test/MC/Markup/basic-markup.mc | 16 | ||||
-rw-r--r-- | test/MC/Markup/lit.local.cfg | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/Markup/basic-markup.mc b/test/MC/Markup/basic-markup.mc new file mode 100644 index 0000000..2fa5ebb --- /dev/null +++ b/test/MC/Markup/basic-markup.mc @@ -0,0 +1,16 @@ +// RUN: llvm-mcmarkup %s | FileCheck %s + + push {<reg:r1>, <reg:r2>, <reg:r7>} + sub <reg:sp>, <imm:#132> + ldr <reg:r0>, <mem:[<reg:r0>, <imm:#4>]> + + +// CHECK: reg +// CHECK: reg +// CHECK: reg +// CHECK: reg +// CHECK: imm +// CHECK: reg +// CHECK: mem +// CHECK: reg +// CHECK: imm diff --git a/test/MC/Markup/lit.local.cfg b/test/MC/Markup/lit.local.cfg new file mode 100644 index 0000000..ab28eed --- /dev/null +++ b/test/MC/Markup/lit.local.cfg @@ -0,0 +1,2 @@ +config.suffixes = ['.mc'] + |