Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=sparc |
Evan Cheng | 7722ceb | 2007-07-13 23:57:33 +0000 | [diff] [blame] | 2 | ; PR1540 |
3 | |||||
4 | declare float @sinf(float) | ||||
5 | declare double @sin(double) | ||||
6 | define double @test_sin(float %F) { | ||||
7 | %G = call float @sinf( float %F ) ; <float> [#uses=1] | ||||
8 | %H = fpext float %G to double ; <double> [#uses=1] | ||||
9 | %I = call double @sin( double %H ) ; <double> [#uses=1] | ||||
10 | ret double %I | ||||
11 | } |