xref: /llvm-project/llvm/test/MC/X86/AlignedBundling/misaligned-bundle-group.s (revision b1932b8483011c2bfebbea1ef56a565634570e6b)
1# RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -mcpu=pentiumpro %s -o - \
2# RUN:   | llvm-objdump -d --no-show-raw-insn - \
3# RUN:   | FileCheck -check-prefix=CHECK -check-prefix=CHECK-OPT %s
4# RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -mcpu=pentiumpro -mc-relax-all %s -o - \
5# RUN:   | llvm-objdump -d --no-show-raw-insn - \
6# RUN:   | FileCheck --check-prefixes=CHECK,CHECK-OPT %s
7
8        .text
9foo:
10        .bundle_align_mode 5
11        push    %ebp # 1 byte
12        .align  16
13        .bundle_lock align_to_end
14# CHECK:            1:  nopw %cs:(%eax,%eax)
15# CHECK:            10: nopw %cs:(%eax,%eax)
16# CHECK-OPT:        1b: calll 0x1c
17        calll   bar # 5 bytes
18        .bundle_unlock
19        ret         # 1 byte
20