diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-31 02:32:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-31 02:32:59 +0000 |
commit | a027d222e18ea9028e9e12ae2f5cd566889b599a (patch) | |
tree | 520976211ef5f223e4b7c597af8842a87d8f0271 /test | |
parent | 933c762371fe8cc6e2ef5d00d6866f4924852fed (diff) | |
download | external_llvm-a027d222e18ea9028e9e12ae2f5cd566889b599a.zip external_llvm-a027d222e18ea9028e9e12ae2f5cd566889b599a.tar.gz external_llvm-a027d222e18ea9028e9e12ae2f5cd566889b599a.tar.bz2 |
llvm-mc: Match a few X86 instructions.
- This is "experimental" code, I am feeling my way around and working out the
best way to do things (and learning tblgen in the process). Comments welcome,
but keep in mind this stuff will change radically.
- This is enough to match "subb" and friends, but not much else. The next step is to
automatically generate the matchers for individual operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/x86_instructions.s | 5 | ||||
-rw-r--r-- | test/MC/AsmParser/x86_operands.s | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/MC/AsmParser/x86_instructions.s b/test/MC/AsmParser/x86_instructions.s new file mode 100644 index 0000000..71f98f0 --- /dev/null +++ b/test/MC/AsmParser/x86_instructions.s @@ -0,0 +1,5 @@ +// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s + +# Simple instructions + subb %al, %al +# CHECK: MCInst(opcode=1831, operands=[reg:2, reg:0, reg:2]) diff --git a/test/MC/AsmParser/x86_operands.s b/test/MC/AsmParser/x86_operands.s index 1d31097..c6f886b 100644 --- a/test/MC/AsmParser/x86_operands.s +++ b/test/MC/AsmParser/x86_operands.s @@ -1,6 +1,6 @@ // FIXME: Actually test that we get the expected results. -// RUN: llvm-mc -triple i386-unknown-unknown %s > %t +// RUN: llvm-mc -triple i386-unknown-unknown %s > %t 2> %t2 # Immediates push $1 |