7dbe93950c118c52040cbe35cf0f39853acd4291
[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