source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 726 bytes
Line 
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}
Note: See TracBrowser for help on using the repository browser.