Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s
      2 ; PR4222
      3 
      4 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
      5 target triple = "x86_64-pc-linux-gnu"
      6 module asm ".ident\09\22$FreeBSD: head/sys/amd64/amd64/minidump_machdep.c 184499 2008-10-31 10:11:35Z kib $\22"
      7 	%struct.dumperinfo = type <{ i32 (i8*, i8*, i64, i64, i64)*, i8*, i32, i32, i64, i64 }>
      8 
      9 define void @minidumpsys(%struct.dumperinfo* %di) nounwind {
     10 entry:
     11 	br label %if.end
     12 
     13 if.end:		; preds = %if.end52, %entry
     14 	br label %for.cond.i.preheader
     15 
     16 for.cond.i.preheader:		; preds = %if.end52, %if.end
     17 	%indvar688 = phi i64 [ 0, %if.end ], [ %indvar.next689, %if.end52 ]		; <i64> [#uses=3]
     18 	%tmp690 = shl i64 %indvar688, 12		; <i64> [#uses=1]
     19 	%pa.0642 = add i64 %tmp690, 0		; <i64> [#uses=1]
     20 	%indvar688703 = trunc i64 %indvar688 to i32		; <i32> [#uses=1]
     21 	%tmp692693 = add i32 %indvar688703, 1		; <i32> [#uses=1]
     22 	%phitmp = sext i32 %tmp692693 to i64		; <i64> [#uses=1]
     23 	br i1 false, label %if.end52, label %land.lhs.true.i
     24 
     25 land.lhs.true.i:		; preds = %for.cond.i.preheader
     26 	%shr2.i = lshr i64 %pa.0642, 18		; <i64> [#uses=0]
     27 	unreachable
     28 
     29 if.end52:		; preds = %for.cond.i.preheader
     30 	%phitmp654 = icmp ult i64 %phitmp, 512		; <i1> [#uses=1]
     31 	%indvar.next689 = add i64 %indvar688, 1		; <i64> [#uses=1]
     32 	br i1 %phitmp654, label %for.cond.i.preheader, label %if.end
     33 }
     34 
     35 define void @promote(%struct.dumperinfo* %di) nounwind {
     36 entry:
     37 	br label %if.end
     38 
     39 if.end:		; preds = %if.end52, %entry
     40 	br label %for.cond.i.preheader
     41 
     42 for.cond.i.preheader:		; preds = %if.end52, %if.end
     43 	%indvar688 = phi i32 [ 0, %if.end ], [ %indvar.next689, %if.end52 ]		; <i64> [#uses=3]
     44 	%tmp690 = shl i32 %indvar688, 12		; <i64> [#uses=1]
     45 	%pa.0642 = add i32 %tmp690, 0		; <i64> [#uses=1]
     46 	%tmp692693 = add i32 %indvar688, 1		; <i32> [#uses=1]
     47 	%phitmp = sext i32 %tmp692693 to i64		; <i64> [#uses=1]
     48 	br i1 false, label %if.end52, label %land.lhs.true.i
     49 
     50 land.lhs.true.i:		; preds = %for.cond.i.preheader
     51 	%shr2.i = lshr i32 %pa.0642, 18		; <i64> [#uses=0]
     52 	unreachable
     53 
     54 if.end52:		; preds = %for.cond.i.preheader
     55 	%phitmp654 = icmp ult i64 %phitmp, 512		; <i1> [#uses=1]
     56 	%indvar.next689 = add i32 %indvar688, 1		; <i64> [#uses=1]
     57 	br i1 %phitmp654, label %for.cond.i.preheader, label %if.end
     58 }
     59