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
3 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mc-relax-all %s -o - \
4 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s
6 # Will be bundle-aligning to 16 byte boundaries
12 # Test that bundle alignment mode can be set more than once.
14 # Each of these callq instructions is 5 bytes long
23 # CHECK: 10: callq {{.*}} <bar>
24 # CHECK-NEXT: 15: callq {{.*}} <bar>
32 # Check that the callqs get bundled together, and that the whole group is
36 .bundle_lock align_to_end
40 # CHECK: 36: callq {{.*}} <bar>
41 # CHECK-NEXT: 3b: callq {{.*}} <bar>
48 # Check that the callqs get bundled together, and that the whole group is
49 # align_to_end (with the outer directive marked align_to_end)
50 .bundle_lock align_to_end
56 # CHECK: 56: callq {{.*}} <bar>
57 # CHECK-NEXT: 5b: callq {{.*}} <bar>
70 # Check that the calls are bundled together when the second one is after the
71 # inner nest is closed.
72 # CHECK: 70: callq {{.*}} <bar>
73 # CHECK-NEXT: 75: callq {{.*}} <bar>