llvm-mc/AsmParser: Implement user defined super classes.
[oota-llvm.git] / test / MC / AsmParser / x86_instructions.s
1 // FIXME: Switch back to FileCheck once we print actual instructions
2         
3 // RUN: llvm-mc -triple i386-unknown-unknown %s > %t
4
5 // RUN: grep {MCInst(opcode=.*, operands=.reg:2, reg:0, reg:2.)} %t
6         subb %al, %al
7
8 // RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:24.)} %t
9         addl $24, %eax
10
11 // RUN: grep {MCInst(opcode=.*, operands=.reg:20, imm:1, reg:0, val:10, reg:0, reg:19.)} %t
12         movl %eax, 10(%ebp)
13 // RUN: grep {MCInst(opcode=.*, operands=.reg:20, imm:1, reg:21, val:10, reg:0, reg:19.)} %t
14         movl %eax, 10(%ebp, %ebx)
15 // RUN: grep {MCInst(opcode=.*, operands=.reg:20, imm:4, reg:21, val:10, reg:0, reg:19.)} %t
16         movl %eax, 10(%ebp, %ebx, 4)
17 // RUN: grep {MCInst(opcode=.*, operands=.reg:0, imm:4, reg:21, val:10, reg:0, reg:19.)} %t
18         movl %eax, 10(, %ebx, 4)
19
20 // FIXME: Check that this matches SUB32ri8
21 // RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:1.)} %t
22         subl $1, %eax
23         
24 // FIXME: Check that this matches SUB32ri8
25 // RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:-1.)} %t
26         subl $-1, %eax
27         
28 // FIXME: Check that this matches SUB32ri
29 // RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:256.)} %t
30         subl $256, %eax
31
32