1 // FIXME: Switch back to FileCheck once we print actual instructions
3 // RUN: llvm-mc -triple i386-unknown-unknown %s > %t
5 // RUN: grep {MCInst(opcode=.*, operands=.reg:2, reg:0, reg:2.)} %t
8 // RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:24.)} %t
11 // RUN: grep {MCInst(opcode=.*, operands=.reg:20, imm:1, reg:0, val:10, reg:0, reg:19.)} %t
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)
20 // FIXME: Check that this matches SUB32ri8
21 // RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:1.)} %t
24 // FIXME: Check that this matches SUB32ri8
25 // RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:-1.)} %t
28 // FIXME: Check that this matches SUB32ri
29 // RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:256.)} %t