1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep extractelement
3 define void @get_image() nounwind {
5 %0 = call i32 @fgetc(i8* null) nounwind ; <i32> [#uses=1]
6 %1 = trunc i32 %0 to i8 ; <i8> [#uses=1]
7 %tmp2 = insertelement <100 x i8> zeroinitializer, i8 %1, i32 1 ; <<100 x i8>> [#uses=1]
8 %tmp1 = extractelement <100 x i8> %tmp2, i32 0 ; <i8> [#uses=1]
9 %2 = icmp eq i8 %tmp1, 80 ; <i1> [#uses=1]
10 br i1 %2, label %bb2, label %bb3
15 bb3: ; preds = %bb2, %entry
19 declare i32 @fgetc(i8*)