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
28 lines
700 B
ArmAsm
28 lines
700 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 two different executable sections with bundling.
|
|
|
|
.bundle_align_mode 3
|
|
.section text1, "x"
|
|
# CHECK: section text1
|
|
imull $17, %ebx, %ebp
|
|
imull $17, %ebx, %ebp
|
|
|
|
imull $17, %ebx, %ebp
|
|
# CHECK: 6: nop
|
|
# CHECK-NEXT: 8: imull
|
|
|
|
.section text2, "x"
|
|
# CHECK: section text2
|
|
imull $17, %ebx, %ebp
|
|
imull $17, %ebx, %ebp
|
|
|
|
imull $17, %ebx, %ebp
|
|
# CHECK: 6: nop
|
|
# CHECK-NEXT: 8: imull
|
|
|
|
|