brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 89c1ceb Raw
63 lines · plain
1; RUN: llc < %s -mcpu=cortex-a8 -verify-regalloc2target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"3target triple = "thumbv7-apple-ios"4 5; This test calls shrinkToUses with an early-clobber redefined live range during6; spilling.7;8;   Shrink: %47,1.158257e-02 = [384r,400e:0)[400e,420r:1)  0@384r 1@400e9;10; The early-clobber instruction is an str:11;12;   early-clobber %12 = t2STR_PRE %6, %12, 32, 14, %noreg13;14; This tests that shrinkToUses handles the EC redef correctly.15 16%struct.Transform_Struct.0.11.12.17.43.46.56.58.60 = type { [4 x [4 x double]] }17 18define void @Compute_Axis_Rotation_Transform(ptr nocapture %transform, ptr nocapture %V1, double %angle) nounwind {19entry:20  store double 1.000000e+00, ptr null, align 421  %arrayidx5.1.i = getelementptr inbounds %struct.Transform_Struct.0.11.12.17.43.46.56.58.60, ptr %transform, i32 0, i32 0, i32 0, i32 122  store double 0.000000e+00, ptr %arrayidx5.1.i, align 423  %arrayidx5.2.i = getelementptr inbounds %struct.Transform_Struct.0.11.12.17.43.46.56.58.60, ptr %transform, i32 0, i32 0, i32 0, i32 224  store double 0.000000e+00, ptr %arrayidx5.2.i, align 425  %arrayidx5.114.i = getelementptr inbounds %struct.Transform_Struct.0.11.12.17.43.46.56.58.60, ptr %transform, i32 0, i32 0, i32 1, i32 026  store double 0.000000e+00, ptr %arrayidx5.114.i, align 427  %arrayidx5.1.1.i = getelementptr inbounds %struct.Transform_Struct.0.11.12.17.43.46.56.58.60, ptr %transform, i32 0, i32 0, i32 1, i32 128  store double 1.000000e+00, ptr %arrayidx5.1.1.i, align 429  store double 0.000000e+00, ptr null, align 430  store double 1.000000e+00, ptr null, align 431  store double 0.000000e+00, ptr null, align 432  %call = tail call double @cos(double %angle) nounwind readnone33  %call1 = tail call double @sin(double %angle) nounwind readnone34  %0 = load double, ptr %V1, align 435  %arrayidx2 = getelementptr inbounds double, ptr %V1, i32 136  %1 = load double, ptr %arrayidx2, align 437  %mul = fmul double %0, %138  %sub = fsub double 1.000000e+00, %call39  %mul3 = fmul double %mul, %sub40  %2 = load double, ptr undef, align 441  %mul5 = fmul double %2, %call142  %add = fadd double %mul3, %mul543  store double %add, ptr %arrayidx5.1.i, align 444  %3 = load double, ptr %V1, align 445  %mul11 = fmul double %3, undef46  %mul13 = fmul double %mul11, %sub47  %4 = load double, ptr %arrayidx2, align 448  %mul15 = fmul double %4, %call149  %sub16 = fsub double %mul13, %mul1550  store double %sub16, ptr %arrayidx5.2.i, align 451  %5 = load double, ptr %V1, align 452  %6 = load double, ptr %arrayidx2, align 453  %mul22 = fmul double %5, %654  %mul24 = fmul double %mul22, %sub55  %sub27 = fsub double %mul24, undef56  store double %sub27, ptr %arrayidx5.114.i, align 457  ret void58}59 60declare double @cos(double) nounwind readnone61 62declare double @sin(double) nounwind readnone63