diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-09 23:02:14 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-09 23:02:14 +0000 |
commit | f4e5de45837cff2b3bc9fd95d54f6ff14c2996e2 (patch) | |
tree | 3783c585abfe31d877fe0cbf4d2f7dab4519be83 /llvm/test/CodeGen/ARM/fpow.ll | |
parent | ab6676a46a0c4ab40aca8090c68591e744b22bb2 (diff) | |
download | bcm5719-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.ll | 10 |
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 |