diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-09 07:20:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-09 07:20:21 +0000 |
commit | 06d5cb633465882b02599c472d817fbd868d2c87 (patch) | |
tree | b5f32d418b6c9801b6b585886073bf02657aa2a2 /test | |
parent | 723e7983f0d731f6303f7664332f4c5f0d7fadb0 (diff) | |
download | external_llvm-06d5cb633465882b02599c472d817fbd868d2c87.zip external_llvm-06d5cb633465882b02599c472d817fbd868d2c87.tar.gz external_llvm-06d5cb633465882b02599c472d817fbd868d2c87.tar.bz2 |
llvm-mc/AsmParser: Implement user defined super classes.
- We can now discriminate SUB32ri8 from SUB32ri, for example.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/x86_instructions.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/MC/AsmParser/x86_instructions.s b/test/MC/AsmParser/x86_instructions.s index ffd2dde..57d9dec 100644 --- a/test/MC/AsmParser/x86_instructions.s +++ b/test/MC/AsmParser/x86_instructions.s @@ -16,3 +16,17 @@ 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) + +// FIXME: Check that this matches SUB32ri8 +// RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:1.)} %t + subl $1, %eax + +// FIXME: Check that this matches SUB32ri8 +// RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:-1.)} %t + subl $-1, %eax + +// FIXME: Check that this matches SUB32ri +// RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:256.)} %t + subl $256, %eax + + |