1 // FIXME: Switch back to FileCheck once we print actual instructions
3 // RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
5 // CHECK: subb %al, %al
8 // CHECK: addl $24, %eax
11 // CHECK: movl %eax, 10(%ebp)
13 // CHECK: movl %eax, 10(%ebp,%ebx)
14 movl %eax, 10(%ebp, %ebx)
15 // CHECK: movl %eax, 10(%ebp,%ebx,4)
16 movl %eax, 10(%ebp, %ebx, 4)
17 // CHECK: movl %eax, 10(,%ebx,4)
18 movl %eax, 10(, %ebx, 4)
20 // CHECK: movl 0, %eax
22 // CHECK: movl $0, %eax
28 // FIXME: Check that this matches SUB32ri8
29 // CHECK: subl $1, %eax
32 // FIXME: Check that this matches SUB32ri8
33 // CHECK: subl $-1, %eax
36 // FIXME: Check that this matches SUB32ri
37 // CHECK: subl $256, %eax
40 // FIXME: Check that this matches XOR64ri8
41 // CHECK: xorq $1, %rax
44 // FIXME: Check that this matches XOR64ri32
45 // CHECK: xorq $256, %rax
48 // FIXME: Check that this matches SUB8rr
49 // CHECK: subb %al, %bl
52 // FIXME: Check that this matches SUB16rr
53 // CHECK: subw %ax, %bx
56 // FIXME: Check that this matches SUB32rr
57 // CHECK: subl %eax, %ebx
60 // FIXME: Check that this matches the correct instruction.
64 // FIXME: Check that this matches the correct instruction.
65 // CHECK: shldl %cl, %eax, %ebx
68 // CHECK: shll $2, %eax
71 // CHECK: shll $2, %eax