Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc -disable-fp-elim -relocation-model=pic < %s
      2 target triple = "armv6-apple-ios"
      3 
      4 ; Reduced from 177.mesa. This test causes a live range split before an LDR_POST instruction.
      5 ; That requires leaveIntvBefore to be very accurate about the redefined value number.
      6 define internal void @sample_nearest_3d(i8* nocapture %tObj, i32 %n, float* nocapture %s, float* nocapture %t, float* nocapture %u, float* nocapture %lambda, i8* nocapture %red, i8* nocapture %green, i8* nocapture %blue, i8* nocapture %alpha) nounwind ssp {
      7 entry:
      8   br i1 undef, label %for.end, label %for.body.lr.ph
      9 
     10 for.body.lr.ph:                                   ; preds = %entry
     11   br label %for.body
     12 
     13 for.body:                                         ; preds = %for.body, %for.body.lr.ph
     14   %i.031 = phi i32 [ 0, %for.body.lr.ph ], [ %0, %for.body ]
     15   %arrayidx11 = getelementptr float* %t, i32 %i.031
     16   %arrayidx15 = getelementptr float* %u, i32 %i.031
     17   %arrayidx19 = getelementptr i8* %red, i32 %i.031
     18   %arrayidx22 = getelementptr i8* %green, i32 %i.031
     19   %arrayidx25 = getelementptr i8* %blue, i32 %i.031
     20   %arrayidx28 = getelementptr i8* %alpha, i32 %i.031
     21   %tmp12 = load float* %arrayidx11, align 4
     22   tail call fastcc void @sample_3d_nearest(i8* %tObj, i8* undef, float undef, float %tmp12, float undef, i8* %arrayidx19, i8* %arrayidx22, i8* %arrayidx25, i8* %arrayidx28)
     23   %0 = add i32 %i.031, 1
     24   %exitcond = icmp eq i32 %0, %n
     25   br i1 %exitcond, label %for.end, label %for.body
     26 
     27 for.end:                                          ; preds = %for.body, %entry
     28   ret void
     29 }
     30 
     31 declare fastcc void @sample_3d_nearest(i8* nocapture, i8* nocapture, float, float, float, i8* nocapture, i8* nocapture, i8* nocapture, i8* nocapture) nounwind ssp
     32 
     33