1*9880d681SAndroid Build Coastguard Worker; RUN: llc -disable-fp-elim -relocation-model=pic < %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -disable-fp-elim -relocation-model=pic -O0 -pre-RA-sched=source < %s | FileCheck %s --check-prefix=SOURCE-SCHED 3*9880d681SAndroid Build Coastguard Workertarget triple = "armv6-apple-ios" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; Reduced from 177.mesa. This test causes a live range split before an LDR_POST instruction. 6*9880d681SAndroid Build Coastguard Worker; That requires leaveIntvBefore to be very accurate about the redefined value number. 7*9880d681SAndroid Build Coastguard Workerdefine 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 { 8*9880d681SAndroid Build Coastguard Workerentry: 9*9880d681SAndroid Build Coastguard Worker br i1 undef, label %for.end, label %for.body.lr.ph 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Workerfor.body.lr.ph: ; preds = %entry 12*9880d681SAndroid Build Coastguard Worker br label %for.body 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerfor.body: ; preds = %for.body, %for.body.lr.ph 15*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: ldr 16*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: ldr 17*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: add 18*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: ldr 19*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: add 20*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: ldr 21*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: add 22*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: ldr 23*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: add 24*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: str 25*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: str 26*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: str 27*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: str 28*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: ldr 29*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: bl 30*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: add 31*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: ldr 32*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: cmp 33*9880d681SAndroid Build Coastguard Worker; SOURCE-SCHED: bne 34*9880d681SAndroid Build Coastguard Worker %i.031 = phi i32 [ 0, %for.body.lr.ph ], [ %0, %for.body ] 35*9880d681SAndroid Build Coastguard Worker %arrayidx11 = getelementptr float, float* %t, i32 %i.031 36*9880d681SAndroid Build Coastguard Worker %arrayidx15 = getelementptr float, float* %u, i32 %i.031 37*9880d681SAndroid Build Coastguard Worker %arrayidx19 = getelementptr i8, i8* %red, i32 %i.031 38*9880d681SAndroid Build Coastguard Worker %arrayidx22 = getelementptr i8, i8* %green, i32 %i.031 39*9880d681SAndroid Build Coastguard Worker %arrayidx25 = getelementptr i8, i8* %blue, i32 %i.031 40*9880d681SAndroid Build Coastguard Worker %arrayidx28 = getelementptr i8, i8* %alpha, i32 %i.031 41*9880d681SAndroid Build Coastguard Worker %tmp12 = load float, float* %arrayidx11, align 4 42*9880d681SAndroid Build Coastguard Worker 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*9880d681SAndroid Build Coastguard Worker %0 = add i32 %i.031, 1 44*9880d681SAndroid Build Coastguard Worker %exitcond = icmp eq i32 %0, %n 45*9880d681SAndroid Build Coastguard Worker br i1 %exitcond, label %for.end, label %for.body 46*9880d681SAndroid Build Coastguard Worker 47*9880d681SAndroid Build Coastguard Workerfor.end: ; preds = %for.body, %entry 48*9880d681SAndroid Build Coastguard Worker ret void 49*9880d681SAndroid Build Coastguard Worker} 50*9880d681SAndroid Build Coastguard Worker 51*9880d681SAndroid Build Coastguard Workerdeclare fastcc void @sample_3d_nearest(i8* nocapture, i8* nocapture, float, float, float, i8* nocapture, i8* nocapture, i8* nocapture, i8* nocapture) nounwind ssp 52*9880d681SAndroid Build Coastguard Worker 53