1 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=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 store i32 1, ptr %t, align 4
14 %1 = getelementptr inbounds %struct.foo, ptr %t, i64 1
15 %2 = getelementptr inbounds i8, ptr %1, i32 -1
17 %3 = getelementptr inbounds i8, ptr %2, i32 -1
19 %4 = getelementptr inbounds i8, ptr %3, i32 -1
21 %5 = getelementptr inbounds i8, ptr %4, i32 -1
23 %6 = getelementptr inbounds i8, ptr %5, i32 -1
25 %7 = getelementptr inbounds i8, ptr %6, i32 -1
27 %8 = getelementptr inbounds i8, ptr %7, i32 -1
29 %9 = getelementptr inbounds i8, ptr %8, i32 -1
31 %10 = load i32, ptr %t, align 4