1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
2 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s
4 # Test some variations of padding to the end of a bundle.
10 # Each of these callq instructions is 5 bytes long
13 .bundle_lock align_to_end
16 # To align this group to a bundle end, we need a 1-byte NOP.
18 # CHECK-NEXT: b: callq
22 .bundle_lock align_to_end
26 # Here we have to pad until the end of the *next* boundary because
27 # otherwise the group crosses a boundary.
29 # The nop sequence may be implemented as one instruction or many, but if
30 # it's one instruction, that instruction cannot itself cross the boundary.
32 # CHECK-NEXT: 26: callq
33 # CHECK-NEXT: 2b: callq