summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-31 02:32:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-31 02:32:59 +0000
commita027d222e18ea9028e9e12ae2f5cd566889b599a (patch)
tree520976211ef5f223e4b7c597af8842a87d8f0271 /test/MC
parent933c762371fe8cc6e2ef5d00d6866f4924852fed (diff)
downloadllvm-a027d222e18ea9028e9e12ae2f5cd566889b599a.tar.gz
llvm-a027d222e18ea9028e9e12ae2f5cd566889b599a.tar.bz2
llvm-a027d222e18ea9028e9e12ae2f5cd566889b599a.tar.xz
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/MC')
-rw-r--r--test/MC/AsmParser/x86_instructions.s5
-rw-r--r--test/MC/AsmParser/x86_operands.s2
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 0000000000..71f98f0d84
--- /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 1d31097f16..c6f886b950 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