1 // RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
3 // CHECK: subb %al, %al
6 // CHECK: addl $24, %eax
9 // CHECK: movl %eax, 10(%ebp)
11 // CHECK: movl %eax, 10(%ebp,%ebx)
12 movl %eax, 10(%ebp, %ebx)
13 // CHECK: movl %eax, 10(%ebp,%ebx,4)
14 movl %eax, 10(%ebp, %ebx, 4)
15 // CHECK: movl %eax, 10(,%ebx,4)
16 movl %eax, 10(, %ebx, 4)
18 // CHECK: movl 0, %eax
20 // CHECK: movl $0, %eax
26 // FIXME: Check that this matches SUB32ri8
27 // CHECK: subl $1, %eax
30 // FIXME: Check that this matches SUB32ri8
31 // CHECK: subl $-1, %eax
34 // FIXME: Check that this matches SUB32ri
35 // CHECK: subl $256, %eax
38 // FIXME: Check that this matches XOR64ri8
39 // CHECK: xorq $1, %rax
42 // FIXME: Check that this matches XOR64ri32
43 // CHECK: xorq $256, %rax
46 // FIXME: Check that this matches SUB8rr
47 // CHECK: subb %al, %bl
50 // FIXME: Check that this matches SUB16rr
51 // CHECK: subw %ax, %bx
54 // FIXME: Check that this matches SUB32rr
55 // CHECK: subl %eax, %ebx
58 // FIXME: Check that this matches the correct instruction.
62 // FIXME: Check that this matches the correct instruction.
63 // CHECK: shldl %cl, %eax, %ebx
66 // CHECK: shll $2, %eax
69 // CHECK: shll $2, %eax
92 // NOTE: repz and repe have the same opcode as rep
97 // NOTE: repnz has the same opcode as repne
102 // NOTE: repe and repz have the same opcode as rep
112 // CHECK: cmpxchgb %al, (%ebx)
113 lock;cmpxchgb %al, 0(%ebx)
116 // CHECK: movb (%eax), %al
120 // CHECK: movb (%eax), %al
124 // CHECK: movb (%eax), %al
128 // CHECK: movb (%eax), %al
132 // CHECK: movb (%eax), %al
136 // CHECK: movb (%eax), %al
139 // CHECK: fadd %st(0)
140 // CHECK: fadd %st(1)
141 // CHECK: fadd %st(7)
147 // CHECK: leal 0, %eax
150 // rdar://7986634 - Insensitivity on opcodes.