brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 2a7dd90 Raw
53 lines · plain
1; RUN: llc -frame-pointer=all -relocation-model=pic < %s2; RUN: llc -frame-pointer=all -relocation-model=pic -O0 -pre-RA-sched=source < %s | FileCheck %s --check-prefix=SOURCE-SCHED3target triple = "armv6-apple-ios"4 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.7define internal void @sample_nearest_3d(ptr nocapture %tObj, i32 %n, ptr nocapture %s, ptr nocapture %t, ptr nocapture %u, ptr nocapture %lambda, ptr nocapture %red, ptr nocapture %green, ptr nocapture %blue, ptr nocapture %alpha) nounwind ssp {8entry:9  br i1 undef, label %for.end, label %for.body.lr.ph10 11for.body.lr.ph:                                   ; preds = %entry12  br label %for.body13 14for.body:                                         ; preds = %for.body, %for.body.lr.ph15; SOURCE-SCHED: ldr16; SOURCE-SCHED: ldr17; SOURCE-SCHED: ldr18; SOURCE-SCHED: ldr19; SOURCE-SCHED: ldr20; SOURCE-SCHED: add21; SOURCE-SCHED: add22; SOURCE-SCHED: add23; SOURCE-SCHED: add24; SOURCE-SCHED: ldr25; SOURCE-SCHED: str26; SOURCE-SCHED: str27; SOURCE-SCHED: str28; SOURCE-SCHED: str29; SOURCE-SCHED: bl30; SOURCE-SCHED: ldr31; SOURCE-SCHED: add32; SOURCE-SCHED: cmp33; SOURCE-SCHED: bne34  %i.031 = phi i32 [ 0, %for.body.lr.ph ], [ %0, %for.body ]35  %arrayidx11 = getelementptr float, ptr %t, i32 %i.03136  %arrayidx15 = getelementptr float, ptr %u, i32 %i.03137  %arrayidx19 = getelementptr i8, ptr %red, i32 %i.03138  %arrayidx22 = getelementptr i8, ptr %green, i32 %i.03139  %arrayidx25 = getelementptr i8, ptr %blue, i32 %i.03140  %arrayidx28 = getelementptr i8, ptr %alpha, i32 %i.03141  %tmp12 = load float, ptr %arrayidx11, align 442  tail call fastcc void @sample_3d_nearest(ptr %tObj, ptr undef, float undef, float %tmp12, float undef, ptr %arrayidx19, ptr %arrayidx22, ptr %arrayidx25, ptr %arrayidx28)43  %0 = add i32 %i.031, 144  %exitcond = icmp eq i32 %0, %n45  br i1 %exitcond, label %for.end, label %for.body46 47for.end:                                          ; preds = %for.body, %entry48  ret void49}50 51declare fastcc void @sample_3d_nearest(ptr nocapture, ptr nocapture, float, float, float, ptr nocapture, ptr nocapture, ptr nocapture, ptr nocapture) nounwind ssp52 53