summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf4e5de45837cff2b3bc9fd95d54f6ff14c2996e2 (patch)
tree3783c585abfe31d877fe0cbf4d2f7dab4519be83 /llvm/test/CodeGen/ARM/fpow.ll
parentab6676a46a0c4ab40aca8090c68591e744b22bb2 (diff)
downloadbcm5719-llvm-f4e5de45837cff2b3bc9fd95d54f6ff14c2996e2.tar.gz
bcm5719-llvm-f4e5de45837cff2b3bc9fd95d54f6ff14c2996e2.zip
Legalizer was missing code that expand fpow to a libcall.
llvm-svn: 56028
Diffstat (limited to 'llvm/test/CodeGen/ARM/fpow.ll')
-rw-r--r--llvm/test/CodeGen/ARM/fpow.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fpow.ll b/llvm/test/CodeGen/ARM/fpow.ll
new file mode 100644
index 00000000000..02a895bf96c
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud