From f4e5de45837cff2b3bc9fd95d54f6ff14c2996e2 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 9 Sep 2008 23:02:14 +0000 Subject: Legalizer was missing code that expand fpow to a libcall. llvm-svn: 56028 --- llvm/test/CodeGen/ARM/fpow.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/CodeGen/ARM/fpow.ll (limited to 'llvm/test/CodeGen/ARM/fpow.ll') 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 ) ; [#uses=1] + ret double %0 +} + +declare double @llvm.pow.f64(double, double) nounwind readonly -- cgit v1.2.3