1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro %s -o - \
2 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-OPT %s
3 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro -mc-relax-all %s -o - \
4 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s
6 # Test simple NOP insertion for single instructions.
10 # Will be bundle-aligning to 16 byte boundaries
21 # This imull is 3 bytes long and should have started at 0xe, so two bytes
22 # of nop padding are inserted instead and it starts at 0x10
24 # CHECK-NEXT: 10: imull
31 # Due to the padding that's inserted before the addl, the jump target
32 # becomes farther by one byte.
38 # CHECK-OPT-NEXT:20: addl
39 # CHECK-RELAX: 26: addl
47 # Just sanity checking that data fills don't drive bundling crazy