llvm-mirror/test/CodeGen/PowerPC/fnabs.ll

11 lines
295 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | llc -march=ppc32 | grep fnabs
2005-04-09 04:03:16 +00:00
declare double @fabs(double)
2005-04-09 04:03:16 +00:00
define double @test(double %X) {
%Y = call double @fabs( double %X ) ; <double> [#uses=1]
%Z = sub double -0.000000e+00, %Y ; <double> [#uses=1]
ret double %Z
2005-04-09 04:03:16 +00:00
}