blob: dcc16c07ef4070ec3eff758a281ef10f0ad3240c [file] [log] [blame]
Bob Wilsonedf04672010-11-17 21:25:27 +00001; RUN: llc < %s -march=thumb | FileCheck %s
2; Test the ARMGlobalMerge pass. Use -march=thumb because it has a small
3; value for the maximum offset (127).
4
5; A local array that exceeds the maximum offset should not be merged.
6; CHECK: g0:
7@g0 = internal global [32 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, i32 1, i32 2 ]
8
Bob Wilson72831dc2010-11-17 21:25:33 +00009; CHECK: _MergedGlobals:
Bob Wilsonedf04672010-11-17 21:25:27 +000010@g1 = internal global i32 1
11@g2 = internal global i32 2