[CFL-AA] CFL-AA should not assert on an va_arg instruction
[oota-llvm.git] / test / Analysis / CFLAliasAnalysis / gep-signed-arithmetic.ll
1 ; RUN: opt < %s -cfl-aa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
2 ; Derived from BasicAA/2010-09-15-GEP-SignedArithmetic.ll
3
4 target datalayout = "e-p:32:32:32"
5
6 ; CHECK: 1 partial alias response
7
8 define i32 @test(i32* %tab, i32 %indvar) nounwind {
9   %tmp31 = mul i32 %indvar, -2
10   %tmp32 = add i32 %tmp31, 30
11   %t.5 = getelementptr i32* %tab, i32 %tmp32
12   %loada = load i32* %tab
13   store i32 0, i32* %t.5
14   %loadb = load i32* %tab
15   %rval = add i32 %loada, %loadb
16   ret i32 %rval
17 }