Teach basicaa that x|c == x+c when the c bits of x are clear. This
[oota-llvm.git] / test / Analysis / BasicAA / 2003-11-04-SimpleCases.ll
1 ; This testcase consists of alias relations which should be completely
2 ; resolvable by basicaa.
3
4 ; RUN: opt < %s -aa-eval -print-may-aliases -disable-output \
5 ; RUN: |& not grep May:
6
7 %T = type { i32, [10 x i8] }
8
9 define void @test(%T* %P) {
10   %A = getelementptr %T* %P, i64 0
11   %B = getelementptr %T* %P, i64 0, i32 0
12   %C = getelementptr %T* %P, i64 0, i32 1
13   %D = getelementptr %T* %P, i64 0, i32 1, i64 0
14   %E = getelementptr %T* %P, i64 0, i32 1, i64 5
15   ret void
16 }