Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s
      2 ; This used to crash.
      3 ; ModuleID = 'bugpoint-reduced-simplified.bc'
      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-s0:64:64-f80:128:128"
      5 target triple = "x86_64-unknown-linux-gnu"
      6 
      7 define void @parse_number(i8* nocapture %p) nounwind {
      8 entry:
      9         %shift.0 = select i1 false, i32 4, i32 2                ; <i32> [#uses=1]
     10         br label %bb47
     11 
     12 bb47:           ; preds = %bb47, %entry
     13         br i1 false, label %bb54, label %bb47
     14 
     15 bb54:           ; preds = %bb47
     16         br i1 false, label %bb56, label %bb66
     17 
     18 bb56:           ; preds = %bb62, %bb54
     19         %p_addr.0.pn.rec = phi i64 [ %p_addr.6.rec, %bb62 ], [ 0, %bb54 ]             ; <i64> [#uses=2]
     20         %ch.6.in.in = phi i8* [ %p_addr.6, %bb62 ], [ null, %bb54 ]           ; <i8*> [#uses=0]
     21         %indvar202 = trunc i64 %p_addr.0.pn.rec to i32          ; <i32>[#uses=1]
     22         %frac_bits.0 = mul i32 %indvar202, %shift.0             ; <i32>[#uses=1]
     23         %p_addr.6.rec = add i64 %p_addr.0.pn.rec, 1             ; <i64>[#uses=2]
     24         %p_addr.6 = getelementptr i8, i8* null, i64 %p_addr.6.rec           ; <i8*>[#uses=1]
     25         br i1 false, label %bb66, label %bb62
     26 
     27 bb62:           ; preds = %bb56
     28         br label %bb56
     29 
     30 bb66:           ; preds = %bb56, %bb54
     31         %frac_bits.1 = phi i32 [ 0, %bb54 ], [ %frac_bits.0, %bb56 ]           ; <i32> [#uses=0]
     32         unreachable
     33 }
     34