diff options
Diffstat (limited to 'test/CodeGen/PowerPC/fnabs.ll')
-rw-r--r-- | test/CodeGen/PowerPC/fnabs.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/fnabs.ll b/test/CodeGen/PowerPC/fnabs.ll new file mode 100644 index 00000000000..9fa2dcb2909 --- /dev/null +++ b/test/CodeGen/PowerPC/fnabs.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -march=ppc32 | grep fnabs + +declare double @fabs(double) + +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 +} + |