1 ; RUN: opt < %s -passes=gvn,instcombine -S | FileCheck %s
3 @G = external constant [4 x i32]
5 define i32 @test(ptr %p, i32 %i) nounwind {
7 %P = getelementptr [4 x i32], ptr @G, i32 0, i32 %i
15 ; CHECK: define i32 @test(ptr %p, i32 %i) #0 {
17 ; CHECK-NEXT: store i8 4, ptr %p, align 1
18 ; CHECK-NEXT: ret i32 0