summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/fabs.ll
diff options
context:
space:
mode:
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 000000000000..54e49b009ace
--- /dev/null
+++ b/test/CodeGen/PowerPC/fabs.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin | grep {fabs f1, f1}
+
+define double @fabs(double %f) {
+entry:
+ %tmp2 = tail call double @fabs( double %f ) ; <double> [#uses=1]
+ ret double %tmp2
+}