gep-signed-arithmetic.ll 614 B

12345678910111213141516171819
  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. target datalayout = "e-p:32:32:32"
  4. ; FIXME: This could be PartialAlias but CFLAA can't currently prove it
  5. ; CHECK: 1 may alias response
  6. define i32 @test(i32 %indvar) nounwind {
  7. %tab = alloca i32, align 4
  8. %tmp31 = mul i32 %indvar, -2
  9. %tmp32 = add i32 %tmp31, 30
  10. %t.5 = getelementptr i32, i32* %tab, i32 %tmp32
  11. %loada = load i32, i32* %tab
  12. store i32 0, i32* %t.5
  13. %loadb = load i32, i32* %tab
  14. %rval = add i32 %loada, %loadb
  15. ret i32 %rval
  16. }