blob: 91886ffe60baebe3da875c735eac2c9785e0d79b [file] [log] [blame]
Dan Gohman1b4c27772009-09-08 16:50:01 +00001; RUN: opt %s -sccp | llvm-dis | not grep %X
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3@G = global [1000000 x i10000] zeroinitializer
4
5define internal i10000* @test(i10000 %Arg) {
6 %X = getelementptr [1000000 x i10000]* @G, i32 0, i32 999
7 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}