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)
22 // FIXME: Check that this matches SUB32ri8
23 // CHECK: subl $1, %eax
26 // FIXME: Check that this matches SUB32ri8
27 // CHECK: subl $-1, %eax
30 // FIXME: Check that this matches SUB32ri
31 // CHECK: subl $256, %eax
34 // FIXME: Check that this matches XOR64ri8
35 // CHECK: xorq $1, %rax
38 // FIXME: Check that this matches XOR64ri32
39 // CHECK: xorq $256, %rax
42 // FIXME: Check that this matches SUB8rr
43 // CHECK: subb %al, %bl
46 // FIXME: Check that this matches SUB16rr
47 // CHECK: subw %ax, %bx
50 // FIXME: Check that this matches SUB32rr
51 // CHECK: subl %eax, %ebx
54 // FIXME: Check that this matches the correct instruction.
58 // FIXME: Check that this matches the correct instruction.
59 // CHECK: shldl %cl, %eax, %ebx