1 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
2 ; If GEP base doesn't alias Z, then GEP doesn't alias Z.
5 @Y = common global i32 0
6 @Z = common global i32 0
9 ; CHECK: NoAlias: i32* %P, i32* @Z
11 define void @foo(i32 %cond) nounwind {
14 %tmp = icmp ne i32 %cond, 0
15 br i1 %tmp, label %bb, label %bb1
24 %P = phi ptr [ %a, %bb ], [ @Y, %bb1 ]
25 %tmp1 = load i32, ptr @Z, align 4
26 store i32 123, ptr %P, align 4
27 %tmp2 = load i32, ptr @Z, align 4