2003-11-04-SimpleCases.ll 610 B

1234567891011121314151617181920
  1. ; This testcase consists of alias relations which should be completely
  2. ; resolvable by basicaa.
  3. ; RUN: opt < %s -basicaa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
  4. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  5. %T = type { i32, [10 x i8] }
  6. ; CHECK: Function: test
  7. ; CHECK-NOT: MayAlias:
  8. define void @test(%T* %P) {
  9. %A = getelementptr %T, %T* %P, i64 0
  10. %B = getelementptr %T, %T* %P, i64 0, i32 0
  11. %C = getelementptr %T, %T* %P, i64 0, i32 1
  12. %D = getelementptr %T, %T* %P, i64 0, i32 1, i64 0
  13. %E = getelementptr %T, %T* %P, i64 0, i32 1, i64 5
  14. ret void
  15. }