1 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
6 ; CHECK: MayAlias: i32* %Ipointer, i32* %Jpointer
7 ; CHECK: 9 no alias responses
8 ; CHECK: 6 may alias responses
10 define void @foo(ptr noalias %p, ptr noalias %q, i32 %i, i32 %j) {
11 %Ipointer = getelementptr i32, ptr %p, i32 %i
12 %qi = getelementptr i32, ptr %q, i32 %i
13 %Jpointer = getelementptr i32, ptr %p, i32 %j
14 %qj = getelementptr i32, ptr %q, i32 %j
16 store i32 0, ptr %Ipointer
17 store i32 0, ptr %Jpointer