summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-11 23:09:10 +0000
committerDan Gohman <gohman@apple.com>2007-10-11 23:09:10 +0000
commitfd66486950253677c165af71e6ef1412d8964ec7 (patch)
treeb24921fb1800ba37352b64b5af10213162d734eb
parentdaee00243802f8a069131e81c2065ef7680d3c49 (diff)
downloadbcm5719-llvm-fd66486950253677c165af71e6ef1412d8964ec7.tar.gz
bcm5719-llvm-fd66486950253677c165af71e6ef1412d8964ec7.zip
Add runtime library names for pow.
llvm-svn: 42880
-rw-r--r--llvm/include/llvm/CodeGen/RuntimeLibcalls.h4
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/RuntimeLibcalls.h b/llvm/include/llvm/CodeGen/RuntimeLibcalls.h
index 5327d68106a..47bb585afff 100644
--- a/llvm/include/llvm/CodeGen/RuntimeLibcalls.h
+++ b/llvm/include/llvm/CodeGen/RuntimeLibcalls.h
@@ -72,6 +72,10 @@ namespace RTLIB {
SIN_F64,
COS_F32,
COS_F64,
+ POW_F32,
+ POW_F64,
+ POW_F80,
+ POW_PPCF128,
// CONVERSION
FPEXT_F32_F64,
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index d55b7452ee5..cffb03da520 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -73,6 +73,10 @@ static void InitLibcallNames(const char **Names) {
Names[RTLIB::SIN_F64] = "sin";
Names[RTLIB::COS_F32] = "cosf";
Names[RTLIB::COS_F64] = "cos";
+ Names[RTLIB::POW_F32] = "powf";
+ Names[RTLIB::POW_F64] = "pow";
+ Names[RTLIB::POW_F80] = "powl";
+ Names[RTLIB::POW_PPCF128] = "powl";
Names[RTLIB::FPEXT_F32_F64] = "__extendsfdf2";
Names[RTLIB::FPROUND_F64_F32] = "__truncdfsf2";
Names[RTLIB::FPTOSINT_F32_I32] = "__fixsfsi";
OpenPOWER on IntegriCloud