1 ; Test folding of constantexpr geps into normal geps.
2 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {icmp eq i64 %X, -1}
5 %S = type { i32, [ 100 x i32] }
7 define i1 @test(i64 %X, %S* %P) {
8 %A = getelementptr %S* %P, i32 0, i32 1, i64 %X
9 %B = getelementptr %S* %P, i32 0, i32 0
10 %C = icmp eq i32* %A, %B