2009-07-31 05:11:49 +02:00
|
|
|
// FIXME: Switch back to FileCheck once we print actual instructions
|
2009-08-07 10:45:03 +02:00
|
|
|
|
2009-08-10 23:06:41 +02:00
|
|
|
// RUN: llvm-mc -triple x86_64-unknown-unknown %s > %t
|
2009-07-31 05:11:49 +02:00
|
|
|
|
|
|
|
// RUN: grep {MCInst(opcode=.*, operands=.reg:2, reg:0, reg:2.)} %t
|
2009-07-31 22:53:16 +02:00
|
|
|
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)
|
2009-08-09 09:20:21 +02:00
|
|
|
|
|
|
|
// 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
|
|
|
|
|
2009-08-10 23:06:41 +02:00
|
|
|
// FIXME: Check that this matches XOR64ri8
|
|
|
|
// RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:1.)} %t
|
|
|
|
xorq $1, %eax
|
2009-08-09 09:20:21 +02:00
|
|
|
|
2009-08-10 23:06:41 +02:00
|
|
|
// FIXME: Check that this matches XOR64ri32
|
|
|
|
// RUN: grep {MCInst(opcode=.*, operands=.reg:19, reg:0, val:256.)} %t
|
|
|
|
xorq $256, %eax
|