summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fpow.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-09 23:02:14 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-09 23:02:14 +0000
commit4b88702ac3fac540b970e2d92f3dcc5071f16a84 (patch)
tree35f515836a56405b28a5cf2a41a96032ae86cfe8 /test/CodeGen/ARM/fpow.ll
parente10c814c52a4cf39a541b4631a64067b1969b124 (diff)
downloadllvm-4b88702ac3fac540b970e2d92f3dcc5071f16a84.tar.gz
llvm-4b88702ac3fac540b970e2d92f3dcc5071f16a84.tar.bz2
llvm-4b88702ac3fac540b970e2d92f3dcc5071f16a84.tar.xz
Legalizer was missing code that expand fpow to a libcall.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fpow.ll')
-rw-r--r--test/CodeGen/ARM/fpow.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fpow.ll b/test/CodeGen/ARM/fpow.ll
new file mode 100644
index 0000000000..02a895bf96
--- /dev/null
+++ b/test/CodeGen/ARM/fpow.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=arm
+; RUN: llvm-as < %s | llc -march=thumb
+
+define double @t(double %x, double %y) nounwind notes(opt_size) {
+entry:
+ %0 = tail call double @llvm.pow.f64( double %x, double %y ) ; <double> [#uses=1]
+ ret double %0
+}
+
+declare double @llvm.pow.f64(double, double) nounwind readonly