2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=ppc32 | grep fnabs
|
2005-04-09 12:03:16 +08:00
|
|
|
|
2008-02-19 16:07:33 +08:00
|
|
|
declare double @fabs(double)
|
2005-04-09 12:03:16 +08:00
|
|
|
|
2008-02-19 16:07:33 +08:00
|
|
|
define double @test(double %X) {
|
2012-08-04 07:29:17 +08:00
|
|
|
%Y = call double @fabs( double %X ) readnone ; <double> [#uses=1]
|
2009-06-05 06:49:04 +08:00
|
|
|
%Z = fsub double -0.000000e+00, %Y ; <double> [#uses=1]
|
2008-02-19 16:07:33 +08:00
|
|
|
ret double %Z
|
2005-04-09 12:03:16 +08:00
|
|
|
}
|
2008-02-19 16:07:33 +08:00
|
|
|
|