mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
15e6a41728
- We can now discriminate SUB32ri8 from SUB32ri, for example. llvm-svn: 78530
33 lines
1.2 KiB
ArmAsm
33 lines
1.2 KiB
ArmAsm
// FIXME: Switch back to FileCheck once we print actual instructions
|
|
|
|
// RUN: llvm-mc -triple i386-unknown-unknown %s > %t
|
|
|
|
// RUN: grep {MCInst(opcode=.*, operands=.reg:2, reg:0, reg:2.)} %t
|
|
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)
|
|
|
|
// 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
|
|
|
|
|