mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 22:53:08 +00:00
bbb668b972
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 llvm-svn: 234714
19 lines
410 B
ArmAsm
19 lines
410 B
ArmAsm
# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
|
|
# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mc-relax-all %s -o - 2>&1 | FileCheck %s
|
|
|
|
# CHECK: ERROR: Fragment can't be larger than a bundle size
|
|
|
|
.text
|
|
foo:
|
|
.bundle_align_mode 4
|
|
pushq %rbp
|
|
|
|
.bundle_lock
|
|
pushq %r14
|
|
callq bar
|
|
callq bar
|
|
callq bar
|
|
callq bar
|
|
.bundle_unlock
|
|
|