| 1 |
# RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -mcpu=pentiumpro %s -o - \ |
| 2 |
# RUN: | llvm-objdump --no-print-imm-hex -d --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 --no-print-imm-hex -d --no-show-raw-insn - \ |
| 6 |
# RUN: | FileCheck --check-prefixes=CHECK,CHECK-OPT %s |
| 7 |
|
| 8 |
.text |
| 9 |
foo: |
| 10 |
.bundle_align_mode 5 |
| 11 |
push %ebp # 1 byte |
| 12 |
.align 16 |
| 13 |
# CHECK: 1: nopw %cs:(%eax,%eax) |
| 14 |
# CHECK-OPT: 10: movl $1, (%esp) |
| 15 |
movl $0x1, (%esp) # 7 bytes |
| 16 |
movl $0x1, (%esp) # 7 bytes |
| 17 |
# CHECK-OPT: 1e: nop |
| 18 |
movl $0x2, 0x1(%esp) # 8 bytes |
| 19 |
movl $0x2, 0x1(%esp) # 8 bytes |
| 20 |
movl $0x2, 0x1(%esp) # 8 bytes |
| 21 |
movl $0x2, (%esp) # 7 bytes |
| 22 |
# CHECK-OPT: 3f: nop |
| 23 |
# CHECK-OPT: 40: movl $3, (%esp) |
| 24 |
movl $0x3, (%esp) # 7 bytes |
| 25 |
movl $0x3, (%esp) # 7 bytes |
| 26 |
ret |