2008-02-19 16:07:33 +08:00
|
|
|
; RUN: llvm-as < %s | llc -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) {
|
|
|
|
%Y = call double @fabs( double %X ) ; <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
|
|
|
|