summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/fabs.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-10 21:16:23 +0000
committerChris Lattner <sabre@nondot.org>2007-09-10 21:16:23 +0000
commit8de5f1cc7b6f4be02eecaf6db3b4283c0a641995 (patch)
treeb740ae996e31edd39930391884d6175d0b54c6a2 /test/CodeGen/PowerPC/fabs.ll
parent87b51bc2b0e9bced27d6fd95573a3f21691a261c (diff)
downloadllvm-8de5f1cc7b6f4be02eecaf6db3b4283c0a641995.tar.gz
llvm-8de5f1cc7b6f4be02eecaf6db3b4283c0a641995.tar.bz2
llvm-8de5f1cc7b6f4be02eecaf6db3b4283c0a641995.tar.xz
this is not infinite recursion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/fabs.ll')
-rw-r--r--test/CodeGen/PowerPC/fabs.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/fabs.ll b/test/CodeGen/PowerPC/fabs.ll
new file mode 100644
index 0000000000..9b7158f047
--- /dev/null
+++ b/test/CodeGen/PowerPC/fabs.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=ppc32 | grep {fabs f1, f1}
+
+define double @fabs(double %f) {
+entry:
+ %tmp2 = tail call double @fabs( double %f ) ; <double> [#uses=1]
+ ret double %tmp2
+}