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

11 lines
325 B
LLVM
Raw Normal View History

; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- | grep fnabs
2005-04-09 12:03:16 +08:00
declare double @fabs(double)
2005-04-09 12:03:16 +08:00
define double @test(double %X) {
%Y = call double @fabs( double %X ) readnone ; <double> [#uses=1]
%Z = fsub double -0.000000e+00, %Y ; <double> [#uses=1]
ret double %Z
2005-04-09 12:03:16 +08:00
}