summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/fnabs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/fnabs.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/fnabs.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/fnabs.ll b/llvm/test/CodeGen/PowerPC/fnabs.ll
new file mode 100644
index 00000000000..5d0ef5f66d2
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/fnabs.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | 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
+}
OpenPOWER on IntegriCloud