1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -pre-alloc-split
3 @object_distance = external global double, align 8 ; <double*> [#uses=1]
4 @axis_slope_angle = external global double, align 8 ; <double*> [#uses=1]
5 @current_surfaces.b = external global i1 ; <i1*> [#uses=1]
7 declare double @sin(double) nounwind readonly
9 declare double @asin(double) nounwind readonly
11 declare double @tan(double) nounwind readonly
13 define fastcc void @trace_line(i32 %line) nounwind {
15 %.b3 = load i1* @current_surfaces.b ; <i1> [#uses=1]
16 br i1 %.b3, label %bb, label %return
18 bb: ; preds = %bb, %entry
19 %0 = tail call double @asin(double 0.000000e+00) nounwind readonly ; <double> [#uses=1]
20 %1 = fadd double 0.000000e+00, %0 ; <double> [#uses=2]
21 %2 = tail call double @asin(double 0.000000e+00) nounwind readonly ; <double> [#uses=1]
22 %3 = fsub double %1, %2 ; <double> [#uses=2]
23 store double %3, double* @axis_slope_angle, align 8
24 %4 = fdiv double %1, 2.000000e+00 ; <double> [#uses=1]
25 %5 = tail call double @sin(double %4) nounwind readonly ; <double> [#uses=1]
26 %6 = fmul double 0.000000e+00, %5 ; <double> [#uses=1]
27 %7 = tail call double @tan(double %3) nounwind readonly ; <double> [#uses=0]
28 %8 = fadd double 0.000000e+00, %6 ; <double> [#uses=1]
29 store double %8, double* @object_distance, align 8
32 return: ; preds = %entry