1 ; RUN: llc -frame-pointer=all -relocation-model=pic < %s
2 ; RUN: llc -frame-pointer=all -relocation-model=pic -O0 -pre-RA-sched=source < %s | FileCheck %s --check-prefix=SOURCE-SCHED
3 target triple = "armv6-apple-ios"
5 ; Reduced from 177.mesa. This test causes a live range split before an LDR_POST instruction.
6 ; That requires leaveIntvBefore to be very accurate about the redefined value number.
7 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 {
9 br i1 undef, label %for.end, label %for.body.lr.ph
11 for.body.lr.ph: ; preds = %entry
14 for.body: ; preds = %for.body, %for.body.lr.ph
34 %i.031 = phi i32 [ 0, %for.body.lr.ph ], [ %0, %for.body ]
35 %arrayidx11 = getelementptr float, float* %t, i32 %i.031
36 %arrayidx15 = getelementptr float, float* %u, i32 %i.031
37 %arrayidx19 = getelementptr i8, i8* %red, i32 %i.031
38 %arrayidx22 = getelementptr i8, i8* %green, i32 %i.031
39 %arrayidx25 = getelementptr i8, i8* %blue, i32 %i.031
40 %arrayidx28 = getelementptr i8, i8* %alpha, i32 %i.031
41 %tmp12 = load float, float* %arrayidx11, align 4
42 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)
43 %0 = add i32 %i.031, 1
44 %exitcond = icmp eq i32 %0, %n
45 br i1 %exitcond, label %for.end, label %for.body
47 for.end: ; preds = %for.body, %entry
51 declare fastcc void @sample_3d_nearest(i8* nocapture, i8* nocapture, float, float, float, i8* nocapture, i8* nocapture, i8* nocapture, i8* nocapture) nounwind ssp