1 # RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -mcpu=pentiumpro %s -o - \
2 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - \
3 # RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-OPT %s
4 # RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -mcpu=pentiumpro -mc-relax-all %s -o - \
5 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - \
6 # RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s
13 # CHECK: 1: nopw %cs:(%eax,%eax)
14 # CHECK-RELAX: 10: nopw %cs:(%eax,%eax)
15 # CHECK-RELAX: 1a: nop
16 # CHECK-OPT: 10: movl $1, (%esp)
17 # CHECK-RELAX: 20: movl $1, (%esp)
18 movl $
0x1, (%esp
) # 7 bytes
19 movl $
0x1, (%esp
) # 7 bytes
21 movl $
0x2, 0x1(%esp
) # 8 bytes
22 movl $
0x2, 0x1(%esp
) # 8 bytes
23 # CHECK-RELAX: 3e: nop
24 # CHECK-RELAX: 40: movl $2, 1(%esp)
25 movl $
0x2, 0x1(%esp
) # 8 bytes
26 movl $
0x2, (%esp
) # 7 bytes
28 # CHECK-OPT: 40: movl $3, (%esp)
29 movl $
0x3, (%esp
) # 7 bytes
30 movl $
0x3, (%esp
) # 7 bytes