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 | 05646099a0b7ebd97571354d658a142e4e4c94c7 (patch) | |
tree | 93e11b13d6ce175216f7179fa38db4434e69ac8f /test | |
parent | 619a3726177c63a14e2822a80e6bc897be2e5a91 (diff) | |
download | external_llvm-05646099a0b7ebd97571354d658a142e4e4c94c7.zip external_llvm-05646099a0b7ebd97571354d658a142e4e4c94c7.tar.gz external_llvm-05646099a0b7ebd97571354d658a142e4e4c94c7.tar.bz2 |
Change ARMGlobalMerge to keep BSS globals in separate pools.
This completes the fixes for Radar 8673120.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/global-merge.ll | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/global-merge.ll b/test/CodeGen/ARM/global-merge.ll index e519dde..28bf221 100644 --- a/test/CodeGen/ARM/global-merge.ll +++ b/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 |