Home | History | Annotate | Download | only in Generic
      1 ; RUN: llc < %s
      2 
      3 define double @fneg(double %X) {
      4         %Y = fsub double -0.000000e+00, %X               ; <double> [#uses=1]
      5         ret double %Y
      6 }
      7 
      8 define float @fnegf(float %X) {
      9         %Y = fsub float -0.000000e+00, %X                ; <float> [#uses=1]
     10         ret float %Y
     11 }
     12 
     13 declare double @fabs(double)
     14 
     15 declare float @fabsf(float)
     16 
     17 define double @fabstest(double %X) {
     18         %Y = call double @fabs( double %X )             ; <double> [#uses=1]
     19         ret double %Y
     20 }
     21 
     22 define float @fabsftest(float %X) {
     23         %Y = call float @fabsf( float %X )              ; <float> [#uses=1]
     24         ret float %Y
     25 }
     26 
     27