1; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
2
3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4
5; CHECK: Function: foo
6; CHECK:   PartialAlias: i32* %Ipointer, i32* %Jpointer
7; CHECK: 9 no alias responses
8; CHECK: 6 partial alias responses
9
10define void @foo(i32* noalias %p, i32* noalias %q, i32 %i, i32 %j) {
11  %Ipointer = getelementptr i32, i32* %p, i32 %i
12  %qi = getelementptr i32, i32* %q, i32 %i
13  %Jpointer = getelementptr i32, i32* %p, i32 %j
14  %qj = getelementptr i32, i32* %q, i32 %j
15  store i32 0, i32* %p
16  store i32 0, i32* %Ipointer
17  store i32 0, i32* %Jpointer
18  store i32 0, i32* %q
19  store i32 0, i32* %qi
20  store i32 0, i32* %qj
21  ret void
22}
23