1 ; RUN: opt < %s -basicaa -gvn -S | FileCheck %s
4 ; BasicAA claims no alias when there is (due to a problem when the MaxLookup
7 target datalayout = "e"
9 %struct.foo = type { i32, i32 }
12 %t = alloca %struct.foo, align 4
13 %1 = getelementptr inbounds %struct.foo, %struct.foo* %t, i32 0, i32 0
14 store i32 1, i32* %1, align 4
15 %2 = getelementptr inbounds %struct.foo, %struct.foo* %t, i64 1
16 %3 = bitcast %struct.foo* %2 to i8*
17 %4 = getelementptr inbounds i8, i8* %3, i32 -1
19 %5 = getelementptr inbounds i8, i8* %4, i32 -1
21 %6 = getelementptr inbounds i8, i8* %5, i32 -1
23 %7 = getelementptr inbounds i8, i8* %6, i32 -1
25 %8 = getelementptr inbounds i8, i8* %7, i32 -1
27 %9 = getelementptr inbounds i8, i8* %8, i32 -1
29 %10 = getelementptr inbounds i8, i8* %9, i32 -1
31 %11 = getelementptr inbounds i8, i8* %10, i32 -1
33 %12 = load i32, i32* %1, align 4