2009-07-31 03:11:49 +00:00
|
|
|
// FIXME: Switch back to FileCheck once we print actual instructions
|
2009-08-07 08:45:03 +00:00
|
|
|
|
2009-08-14 03:48:55 +00:00
|
|
|
// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
|
2009-07-31 03:11:49 +00:00
|
|
|
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: subb %al, %al
|
2009-07-31 20:53:16 +00:00
|
|
|
subb %al, %al
|
|
|
|
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: addl $24, %eax
|
2009-07-31 20:53:16 +00:00
|
|
|
addl $24, %eax
|
|
|
|
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: movl %eax, 10(%ebp)
|
2009-07-31 20:53:16 +00:00
|
|
|
movl %eax, 10(%ebp)
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: movl %eax, 10(%ebp,%ebx)
|
2009-07-31 20:53:16 +00:00
|
|
|
movl %eax, 10(%ebp, %ebx)
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: movl %eax, 10(%ebp,%ebx,4)
|
2009-07-31 20:53:16 +00:00
|
|
|
movl %eax, 10(%ebp, %ebx, 4)
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: movl %eax, 10(,%ebx,4)
|
2009-07-31 20:53:16 +00:00
|
|
|
movl %eax, 10(, %ebx, 4)
|
2010-01-22 20:16:37 +00:00
|
|
|
// CHECK: ret
|
|
|
|
ret
|
|
|
|
|
2009-08-09 07:20:21 +00:00
|
|
|
// FIXME: Check that this matches SUB32ri8
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: subl $1, %eax
|
2009-08-09 07:20:21 +00:00
|
|
|
subl $1, %eax
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB32ri8
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: subl $-1, %eax
|
2009-08-09 07:20:21 +00:00
|
|
|
subl $-1, %eax
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB32ri
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: subl $256, %eax
|
2009-08-09 07:20:21 +00:00
|
|
|
subl $256, %eax
|
|
|
|
|
2009-08-10 21:06:41 +00:00
|
|
|
// FIXME: Check that this matches XOR64ri8
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: xorq $1, %rax
|
2009-08-11 02:59:53 +00:00
|
|
|
xorq $1, %rax
|
2009-08-09 07:20:21 +00:00
|
|
|
|
2009-08-10 21:06:41 +00:00
|
|
|
// FIXME: Check that this matches XOR64ri32
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: xorq $256, %rax
|
2009-08-11 02:59:53 +00:00
|
|
|
xorq $256, %rax
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB8rr
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: subb %al, %bl
|
2009-08-11 02:59:53 +00:00
|
|
|
subb %al, %bl
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB16rr
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: subw %ax, %bx
|
2009-08-11 02:59:53 +00:00
|
|
|
subw %ax, %bx
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB32rr
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: subl %eax, %ebx
|
2009-08-11 02:59:53 +00:00
|
|
|
subl %eax, %ebx
|
|
|
|
|
2009-08-11 05:00:25 +00:00
|
|
|
// FIXME: Check that this matches the correct instruction.
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: call *%rax
|
2009-08-11 05:00:25 +00:00
|
|
|
call *%rax
|
2009-08-11 23:23:44 +00:00
|
|
|
|
|
|
|
// FIXME: Check that this matches the correct instruction.
|
2009-08-14 03:48:55 +00:00
|
|
|
// CHECK: shldl %cl, %eax, %ebx
|
2009-08-11 23:23:44 +00:00
|
|
|
shldl %cl, %eax, %ebx
|