aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-31 20:53:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-31 20:53:16 +0000
commit022e2a84a867ba73fd0e6b89f61e56396f22620d (patch)
tree1f4c1f50ea9e86c1c943d1aed46d7e785fdb8166 /test/MC
parentf581213bfb3c35c4cf6a2ec85f15ad27bf1bc95d (diff)
downloadexternal_llvm-022e2a84a867ba73fd0e6b89f61e56396f22620d.zip
external_llvm-022e2a84a867ba73fd0e6b89f61e56396f22620d.tar.gz
external_llvm-022e2a84a867ba73fd0e6b89f61e56396f22620d.tar.bz2
llvm-mc/X86: Sketch match functions for immediates and memory operands.
Also, change scale value to always be 1 when unspecified to machine MachineInst encoding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/AsmParser/x86_instructions.s16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/MC/AsmParser/x86_instructions.s b/test/MC/AsmParser/x86_instructions.s
index acffd57..7dbe939 100644
--- a/test/MC/AsmParser/x86_instructions.s
+++ b/test/MC/AsmParser/x86_instructions.s
@@ -2,6 +2,18 @@
// RUN: llvm-mc -triple i386-unknown-unknown %s > %t
-# Simple instructions
- subb %al, %al
// RUN: grep {MCInst(opcode=.*, operands=.reg:2, reg:0, reg:2.)} %t
+ subb %al, %al
+
+// RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:24.)} %t
+ addl $24, %eax
+
+// RUN: grep {MCInst(opcode=.*, operands=.reg:20, imm:1, reg:0, val:10, reg:0, reg:19.)} %t
+ movl %eax, 10(%ebp)
+// RUN: grep {MCInst(opcode=.*, operands=.reg:20, imm:1, reg:21, val:10, reg:0, reg:19.)} %t
+ movl %eax, 10(%ebp, %ebx)
+// RUN: grep {MCInst(opcode=.*, operands=.reg:20, imm:4, reg:21, val:10, reg:0, reg:19.)} %t
+ movl %eax, 10(%ebp, %ebx, 4)
+// RUN: grep {MCInst(opcode=.*, operands=.reg:0, imm:4, reg:21, val:10, reg:0, reg:19.)} %t
+ movl %eax, 10(, %ebx, 4)
+ \ No newline at end of file