blob: 082bd90c21babe4f3bf183bb3df955f5399915ef [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -sccp -S | not grep %X
Reid Spencer9f9fe702007-04-13 22:33:10 +00002
3@G = global [1000000 x i10000] zeroinitializer
4
5define internal i10000* @test(i10000 %Arg) {
David Blaikie79e6c742015-02-27 19:29:02 +00006 %X = getelementptr [1000000 x i10000], [1000000 x i10000]* @G, i32 0, i32 999
Reid Spencer9f9fe702007-04-13 22:33:10 +00007 store i10000 %Arg, i10000* %X
8 ret i10000* %X
9}
10
11define i10000 @caller()
12{
13 %Y = call i10000* @test(i10000 -1)
14 %Z = load i10000* %Y
15 ret i10000 %Z
16}
17
18define i10000 @caller2()
19{
20 %Y = call i10000* @test(i10000 1)
21 %Z = load i10000* %Y
22 ret i10000 %Z
23}