diff options
author | Richard Osborne <richard@xmos.com> | 2012-12-16 18:06:30 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2012-12-16 18:06:30 +0000 |
commit | e4e0089e45350f99c80ece1781671028368708c1 (patch) | |
tree | 1c942a30297d42ad0e1f3da0d2e86862b677cae2 /test/MC/Disassembler | |
parent | 54d6266e9baa8c2796c4a95c35897b5c67d8d910 (diff) | |
download | external_llvm-e4e0089e45350f99c80ece1781671028368708c1.zip external_llvm-e4e0089e45350f99c80ece1781671028368708c1.tar.gz external_llvm-e4e0089e45350f99c80ece1781671028368708c1.tar.bz2 |
Add tests for disassembly of 1r XCore instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Disassembler')
-rw-r--r-- | test/MC/Disassembler/XCore/lit.local.cfg | 5 | ||||
-rw-r--r-- | test/MC/Disassembler/XCore/xcore.txt | 40 |
2 files changed, 45 insertions, 0 deletions
diff --git a/test/MC/Disassembler/XCore/lit.local.cfg b/test/MC/Disassembler/XCore/lit.local.cfg new file mode 100644 index 0000000..15b6583 --- /dev/null +++ b/test/MC/Disassembler/XCore/lit.local.cfg @@ -0,0 +1,5 @@ +config.suffixes = ['.txt'] + +targets = set(config.root.targets_to_build.split()) +if not 'XCore' in targets: + config.unsupported = True diff --git a/test/MC/Disassembler/XCore/xcore.txt b/test/MC/Disassembler/XCore/xcore.txt new file mode 100644 index 0000000..3dacf6d --- /dev/null +++ b/test/MC/Disassembler/XCore/xcore.txt @@ -0,0 +1,40 @@ +# RUN: llvm-mc --disassemble %s -triple=xcore-xmos-elf | FileCheck %s +# CHECK: .section __TEXT,__text,regular,pure_instructions + +# 1r instructions + +# CHECK: msync res[r0] +0xf0 0x1f + +# CHECK: mjoin res[r1] +0xf1 0x17 + +# CHECK: bau r2 +0xf2 0x27 + +# CHECK: set sp, r3 +0xf3 0x2f + +# CHECK: ecallt r4 +0xf4 0x4f + +# CHECK: ecallf r5 +0xe5 0x4f + +# CHECK: bla r6 +0xe6 0x27 + +# CHECK: syncr res[r7] +0xf7 0x87 + +# CHECK: freer res[r8] +0xe8 0x17 + +# CHECK: setv res[r9], r11 +0xf9 0x47 + +# CHECK: setev res[r10], r11 +0xfa 0x3f + +# CHECK: eeu res[r11] +0xfb 0x07 |