source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/BasicAA/2010-09-15-GEP-SignedArithmetic.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: 481 bytes
Line 
1; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
2; PR7959
3
4target datalayout = "e-p:32:32:32"
5
6; CHECK: 1 partial alias response
7
8define i32 @test(i32* %tab, i32 %indvar) nounwind {
9  %tmp31 = mul i32 %indvar, -2
10  %tmp32 = add i32 %tmp31, 30
11  %t.5 = getelementptr i32, i32* %tab, i32 %tmp32
12  %loada = load i32, i32* %tab
13  store i32 0, i32* %t.5
14  %loadb = load i32, i32* %tab
15  %rval = add i32 %loada, %loadb
16  ret i32 %rval
17}
Note: See TracBrowser for help on using the repository browser.