blob: 7b5584e0bd8b1b9f09501e5df09e8495d1467338 [file] [log] [blame]
Dan Gohman5f1312c2011-06-04 06:50:18 +00001; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {1 partial alias}
Eli Friedman39e30122010-09-15 20:08:03 +00002; PR7959
3
4target datalayout = "e-p:32:32:32"
5
6define i32 @test(i32* %tab, i32 %indvar) nounwind {
7 %tmp31 = mul i32 %indvar, -2
8 %tmp32 = add i32 %tmp31, 30
9 %t.5 = getelementptr i32* %tab, i32 %tmp32
10 %loada = load i32* %tab
11 store i32 0, i32* %t.5
12 %loadb = load i32* %tab
13 %rval = add i32 %loada, %loadb
14 ret i32 %rval
15}