Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86
      2 ; PR2748
      3 
      4 @g_73 = external global i32		; <i32*> [#uses=1]
      5 @g_5 = external global i32		; <i32*> [#uses=1]
      6 
      7 define i32 @func_44(i16 signext %p_46) nounwind {
      8 entry:
      9 	%0 = load i32* @g_5, align 4		; <i32> [#uses=1]
     10 	%1 = ashr i32 %0, 1		; <i32> [#uses=1]
     11 	%2 = icmp sgt i32 %1, 1		; <i1> [#uses=1]
     12 	%3 = zext i1 %2 to i32		; <i32> [#uses=1]
     13 	%4 = load i32* @g_73, align 4		; <i32> [#uses=1]
     14 	%5 = zext i16 %p_46 to i64		; <i64> [#uses=1]
     15 	%6 = sub i64 0, %5		; <i64> [#uses=1]
     16 	%7 = trunc i64 %6 to i8		; <i8> [#uses=2]
     17 	%8 = trunc i32 %4 to i8		; <i8> [#uses=2]
     18 	%9 = icmp eq i8 %8, 0		; <i1> [#uses=1]
     19 	br i1 %9, label %bb11, label %bb12
     20 
     21 bb11:		; preds = %entry
     22 	%10 = urem i8 %7, %8		; <i8> [#uses=1]
     23 	br label %bb12
     24 
     25 bb12:		; preds = %bb11, %entry
     26 	%.014.in = phi i8 [ %10, %bb11 ], [ %7, %entry ]		; <i8> [#uses=1]
     27 	%11 = icmp ne i8 %.014.in, 0		; <i1> [#uses=1]
     28 	%12 = zext i1 %11 to i32		; <i32> [#uses=1]
     29 	%13 = tail call i32 (...)* @func_48( i32 %12, i32 %3, i32 0 ) nounwind		; <i32> [#uses=0]
     30 	ret i32 undef
     31 }
     32 
     33 declare i32 @func_48(...)
     34