From 45485234ee27a3317e8acc3c40c1d3174203fc63 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 9 Apr 2005 04:03:16 +0000 Subject: [PATCH] add a test for fnabs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21169 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PowerPC/fnabs.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGen/PowerPC/fnabs.ll diff --git a/test/CodeGen/PowerPC/fnabs.ll b/test/CodeGen/PowerPC/fnabs.ll new file mode 100644 index 00000000000..e6ec5b3fc6e --- /dev/null +++ b/test/CodeGen/PowerPC/fnabs.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | grep fnabs + +declare double %fabs(double) + +implementation + +double %test(double %X) { + %Y = call double %fabs(double %X) + %Z = sub double -0.0, %Y + ret double %Z +} -- 2.34.1