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 %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 %s
6 # Test some variations of padding to the end of a bundle.
12 # Each of these callq instructions is 5 bytes long
15 .bundle_lock align_to_end
18 # To align this group to a bundle end, we need a 1-byte NOP.
20 # CHECK-NEXT: b: callq
24 .bundle_lock align_to_end
28 # Here we have to pad until the end of the *next* boundary because
29 # otherwise the group crosses a boundary.
31 # The nop sequence may be implemented as one instruction or many, but if
32 # it's one instruction, that instruction cannot itself cross the boundary.
34 # CHECK-NEXT: 26: callq
35 # CHECK-NEXT: 2b: callq