1 ; RUN: llc < %s -march=x86 -mattr=+sse2 -pre-alloc-split | grep {divsd 8} | count 1
3 @current_surfaces.b = external global i1 ; <i1*> [#uses=1]
5 declare double @sin(double) nounwind readonly
7 declare double @asin(double) nounwind readonly
9 define fastcc void @trace_line(i32 %line) nounwind {
11 %.b3 = load i1* @current_surfaces.b ; <i1> [#uses=1]
12 br i1 %.b3, label %bb.nph, label %return
14 bb.nph: ; preds = %entry
15 %0 = load double* null, align 8 ; <double> [#uses=1]
16 %1 = load double* null, align 8 ; <double> [#uses=2]
17 %2 = fcmp une double %0, 0.000000e+00 ; <i1> [#uses=1]
18 br i1 %2, label %bb9.i, label %bb13.i
20 bb9.i: ; preds = %bb.nph
21 %3 = tail call double @asin(double 0.000000e+00) nounwind readonly ; <double> [#uses=0]
22 %4 = fdiv double 1.000000e+00, %1 ; <double> [#uses=1]
23 %5 = fmul double %4, 0.000000e+00 ; <double> [#uses=1]
24 %6 = tail call double @asin(double %5) nounwind readonly ; <double> [#uses=0]
27 bb13.i: ; preds = %bb.nph
28 %7 = fdiv double 1.000000e+00, %1 ; <double> [#uses=1]
29 %8 = tail call double @sin(double 0.000000e+00) nounwind readonly ; <double> [#uses=1]
30 %9 = fmul double %7, %8 ; <double> [#uses=1]
31 %10 = tail call double @asin(double %9) nounwind readonly ; <double> [#uses=0]
34 return: ; preds = %entry