[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / X86 / AlignedBundling / long-nop-pad.s
blobbd632f020694548b44e6325bef5d068bad0c1515
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 that long nops are generated for padding where possible.
8 .text
9 foo:
10 .bundle_align_mode 5
12 # This callq instruction is 5 bytes long
13 .bundle_lock align_to_end
14 callq bar
15 .bundle_unlock
16 # To align this group to a bundle end, we need a two 10-byte NOPs and a 7-byte NOP.
17 # CHECK: 0: nop
18 # CHECK-NEXT: a: nop
19 # CHECK-NEXT: 14: nop
20 # CHECK: 1b: callq
22 # This push instruction is 1 byte long
23 .bundle_lock align_to_end
24 push %rax
25 .bundle_unlock
26 # To align this group to a bundle end, we need three 10-byte NOPs, and a 1-byte.
27 # CHECK: 20: nop
28 # CHECK-NEXT: 2a: nop
29 # CHECK-NEXT: 34: nop
30 # CHECK-NEXT: 3e: nop
31 # CHECK-NEXT: 3f: pushq