Home | History | Annotate | Download | only in InstCombine
      1 ; RUN: opt < %s -instcombine -S | grep "= or i32 %x, -5"
      2 
      3 @.str = internal constant [5 x i8] c"foo\0A\00"		; <[5 x i8]*> [#uses=1]
      4 @.str1 = internal constant [5 x i8] c"bar\0A\00"		; <[5 x i8]*> [#uses=1]
      5 
      6 define i32 @main() nounwind  {
      7 entry:
      8 	%x = call i32 @func_11( ) nounwind 		; <i32> [#uses=1]
      9 	%tmp3 = or i32 %x, -5		; <i32> [#uses=1]
     10 	%tmp5 = urem i32 251, %tmp3		; <i32> [#uses=1]
     11 	%tmp6 = icmp ne i32 %tmp5, 0		; <i1> [#uses=1]
     12 	%tmp67 = zext i1 %tmp6 to i32		; <i32> [#uses=1]
     13 	%tmp9 = urem i32 %tmp67, 95		; <i32> [#uses=1]
     14 	%tmp10 = and i32 %tmp9, 1		; <i32> [#uses=1]
     15 	%tmp12 = icmp eq i32 %tmp10, 0		; <i1> [#uses=1]
     16 	br i1 %tmp12, label %bb14, label %bb
     17 
     18 bb:		; preds = %entry
     19 	br label %bb15
     20 
     21 bb14:		; preds = %entry
     22 	br label %bb15
     23 
     24 bb15:		; preds = %bb14, %bb
     25 	%iftmp.0.0 = phi i8* [ getelementptr ([5 x i8]* @.str1, i32 0, i32 0), %bb14 ], [ getelementptr ([5 x i8]* @.str, i32 0, i32 0), %bb ]		; <i8*> [#uses=1]
     26 	%tmp17 = call i32 (i8*, ...)* @printf( i8* %iftmp.0.0 ) nounwind 		; <i32> [#uses=0]
     27 	ret i32 0
     28 }
     29 
     30 declare i32 @func_11()
     31 
     32 declare i32 @printf(i8*, ...) nounwind 
     33