1 ; RUN: opt < %s -instcombine -S | FileCheck %s
3 @.str = internal constant [5 x i8] c"foo\0A\00"
4 @.str1 = internal constant [5 x i8] c"bar\0A\00"
6 define i32 @main() nounwind {
8 %x = call i32 @func_11() nounwind
10 %tmp5 = urem i32 251, %tmp3
11 %tmp6 = icmp ne i32 %tmp5, 0
12 %tmp67 = zext i1 %tmp6 to i32
13 %tmp9 = urem i32 %tmp67, 95
14 %tmp10 = and i32 %tmp9, 1
15 %tmp12 = icmp eq i32 %tmp10, 0
16 br i1 %tmp12, label %bb14, label %bb
25 %iftmp.0.0 = phi i8* [ getelementptr ([5 x i8], [5 x i8]* @.str1, i32 0, i32 0), %bb14 ], [ getelementptr ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), %bb ]
26 %tmp17 = call i32 (i8*, ...) @printf(i8* %iftmp.0.0) nounwind
30 ; CHECK-LABEL: define i32 @main(
31 ; CHECK: call i32 @func_11()
32 ; CHECK-NEXT: br i1 false, label %bb14, label %bb
34 declare i32 @func_11()
36 declare i32 @printf(i8*, ...) nounwind