Evan Cheng | e025908 | 2010-03-10 07:07:45 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 -pre-alloc-split | grep {divsd 24} | count 1 |
Evan Cheng | aaf510c | 2008-10-26 07:49:03 +0000 | [diff] [blame] | 2 | |
| 3 | @current_surfaces.b = external global i1 ; <i1*> [#uses=1] |
| 4 | |
| 5 | declare double @sin(double) nounwind readonly |
| 6 | |
| 7 | declare double @asin(double) nounwind readonly |
| 8 | |
| 9 | define fastcc void @trace_line(i32 %line) nounwind { |
| 10 | entry: |
| 11 | %.b3 = load i1* @current_surfaces.b ; <i1> [#uses=1] |
| 12 | br i1 %.b3, label %bb.nph, label %return |
| 13 | |
| 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 |
| 19 | |
| 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] |
Dan Gohman | ae3a0be | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 23 | %5 = fmul double %4, 0.000000e+00 ; <double> [#uses=1] |
Evan Cheng | aaf510c | 2008-10-26 07:49:03 +0000 | [diff] [blame] | 24 | %6 = tail call double @asin(double %5) nounwind readonly ; <double> [#uses=0] |
| 25 | unreachable |
| 26 | |
| 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] |
Dan Gohman | ae3a0be | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 30 | %9 = fmul double %7, %8 ; <double> [#uses=1] |
Evan Cheng | aaf510c | 2008-10-26 07:49:03 +0000 | [diff] [blame] | 31 | %10 = tail call double @asin(double %9) nounwind readonly ; <double> [#uses=0] |
| 32 | unreachable |
| 33 | |
| 34 | return: ; preds = %entry |
| 35 | ret void |
| 36 | } |