blob: bbd5c7159edc46e52110aa4ebfa91c4c0dd8ed5d [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 | grep fnabs
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00003declare double @fabs(double)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00005define double @test(double %X) {
6 %Y = call double @fabs( double %X ) ; <double> [#uses=1]
Dan Gohman7ce405e2009-06-04 22:49:04 +00007 %Z = fsub double -0.000000e+00, %Y ; <double> [#uses=1]
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00008 ret double %Z
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +000010