brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · 9acdb2a Raw
79 lines · plain
1; RUN: llc < %s -mtriple=armv6-apple-darwin9 -mattr=+vfp22; rdar://66531823 4 5%struct.ggBRDF = type { ptr }6%struct.ggPoint2 = type { [2 x double] }7%struct.ggPoint3 = type { [3 x double] }8%struct.ggSpectrum = type { [8 x float] }9%struct.ggSphere = type { %struct.ggPoint3, double }10%struct.mrDiffuseAreaSphereLuminaire = type { %struct.mrSphere, %struct.ggSpectrum }11%struct.mrDiffuseCosineSphereLuminaire = type { %struct.mrDiffuseAreaSphereLuminaire }12%struct.mrSphere = type { %struct.ggBRDF, %struct.ggSphere }13 14declare double @llvm.sqrt.f64(double) nounwind readonly15 16declare double @sin(double) nounwind readonly17 18declare double @acos(double) nounwind readonly19 20define i32 @_ZNK34mrDiffuseSolidAngleSphereLuminaire18selectVisiblePointERK8ggPoint3RK9ggVector3RK8ggPoint2dRS0_Rd(ptr nocapture %this, ptr nocapture %x, ptr nocapture %unnamed_arg, ptr nocapture %uv, double %unnamed_arg2, ptr nocapture %on_light, ptr nocapture %invProb) nounwind {21entry:22  %0 = call double @llvm.sqrt.f64(double 0.000000e+00) nounwind23  %1 = fcmp ult double 0.000000e+00, %024  br i1 %1, label %bb3, label %bb725 26bb3:                                              ; preds = %entry27  %2 = fdiv double 1.000000e+00, 0.000000e+0028  %3 = fmul double 0.000000e+00, %229  %4 = call double @llvm.sqrt.f64(double 0.000000e+00) nounwind30  %5 = fdiv double 1.000000e+00, %431  %6 = fmul double %3, %532  %7 = fmul double 0.000000e+00, %533  %8 = fmul double %3, %734  %9 = fsub double %8, 0.000000e+0035  %10 = fmul double 0.000000e+00, %636  %11 = fsub double 0.000000e+00, %1037  %12 = fsub double -0.000000e+00, %1138  %13 = fmul double %0, %039  %14 = fsub double %13, 0.000000e+0040  %15 = call double @llvm.sqrt.f64(double %14)41  %16 = fmul double 0.000000e+00, %1542  %17 = fdiv double %16, %043  %18 = fadd double 0.000000e+00, %1744  %19 = call double @acos(double %18) nounwind readonly45  %20 = load double, ptr null, align 446  %21 = fmul double %20, 0x401921FB54442D1847  %22 = call double @sin(double %19) nounwind readonly48  %23 = fmul double %22, 0.000000e+0049  %24 = fmul double %6, %2350  %25 = fmul double %7, %2351  %26 = call double @sin(double %21) nounwind readonly52  %27 = fmul double %22, %2653  %28 = fmul double %9, %2754  %29 = fmul double %27, %1255  %30 = fadd double %24, %2856  %31 = fadd double 0.000000e+00, %2957  %32 = fadd double %25, 0.000000e+0058  %33 = fadd double %30, 0.000000e+0059  %34 = fadd double %31, 0.000000e+0060  %35 = fadd double %32, 0.000000e+0061  call void @llvm.memcpy.p0.p0.i32(ptr align 4 null, ptr align 4 %x, i32 24, i1 false)62  store double %33, ptr null, align 863  br i1 false, label %_Z20ggRaySphereIntersectRK6ggRay3RK8ggSphereddRd.exit, label %bb5.i.i.i64 65bb5.i.i.i:                                        ; preds = %bb366  unreachable67 68_Z20ggRaySphereIntersectRK6ggRay3RK8ggSphereddRd.exit: ; preds = %bb369  %36 = fsub double %13, 0.000000e+0070  %37 = fsub double -0.000000e+00, %3471  %38 = fsub double -0.000000e+00, %3572  ret i32 173 74bb7:                                              ; preds = %entry75  ret i32 076}77 78declare void @llvm.memcpy.p0.p0.i32(ptr nocapture, ptr nocapture, i32, i1) nounwind79