1# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
2# RUN:   | llvm-objdump -d --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 -d --no-show-raw-insn - | FileCheck %s
5
6# Test that an instruction near a bundle end gets properly padded
7# after it is relaxed.
8.text
9foo:
10        .bundle_align_mode 5
11        .rept 29
12        push %rax
13        .endr
14# CHECK: 1c: push
15# CHECK: 1d: nop
16# CHECK: 20: jne
17        jne 0x100
18
19