diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-11-17 21:25:39 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-11-17 21:25:39 +0000 |
commit | 881b45ccdf866e982b1dadc93b19dc11cf245bf7 (patch) | |
tree | a79fb57e25f291f7696105a98865e571d999cc84 /llvm/test/CodeGen/ARM/global-merge.ll | |
parent | 4c8ab19c225ea95587bf06dc5d2107c59e1678a4 (diff) | |
download | bcm5719-llvm-881b45ccdf866e982b1dadc93b19dc11cf245bf7.tar.gz bcm5719-llvm-881b45ccdf866e982b1dadc93b19dc11cf245bf7.zip |
Change ARMGlobalMerge to keep BSS globals in separate pools.
This completes the fixes for Radar 8673120.
llvm-svn: 119566
Diffstat (limited to 'llvm/test/CodeGen/ARM/global-merge.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/global-merge.ll | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM/global-merge.ll b/llvm/test/CodeGen/ARM/global-merge.ll index e519dde33a0..28bf2214740 100644 --- a/llvm/test/CodeGen/ARM/global-merge.ll +++ b/llvm/test/CodeGen/ARM/global-merge.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb | FileCheck %s +; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s ; Test the ARMGlobalMerge pass. Use -march=thumb because it has a small ; value for the maximum offset (127). @@ -15,3 +15,9 @@ ; When this works properly, @g3 is placed in a separate chunk of merged globals. ; CHECK: _MergedGlobals1: @g3 = internal global [30 x i32] [ i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10 ] + +; Global variables that can be placed in BSS should be kept together in a +; separate pool of merged globals. +; CHECK: _MergedGlobals2 +@g4 = internal global i32 0 +@g5 = internal global i32 0 |