mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Summary: When instruction bundling is enabled and the -mc-relax-all flag is set, we can write bundle padding directly into fragments and avoid creating large number of fragments significantly reducing LLVM MC memory usage. Test Plan: Regression test attached Reviewers: eliben Subscribers: jfb, mseaborn Differential Revision: http://reviews.llvm.org/D8072 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234714 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
542 B
ArmAsm
19 lines
542 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
|
|
# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s
|
|
# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mc-relax-all %s -o - \
|
|
# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s
|
|
|
|
# Test that an instruction near a bundle end gets properly padded
|
|
# after it is relaxed.
|
|
.text
|
|
foo:
|
|
.bundle_align_mode 5
|
|
.rept 29
|
|
push %rax
|
|
.endr
|
|
# CHECK: 1c: push
|
|
# CHECK: 1d: nop
|
|
# CHECK: 20: jne
|
|
jne 0x100
|
|
|