From: Dan Gohman Date: Thu, 11 Oct 2007 23:09:10 +0000 (+0000) Subject: Add runtime library names for pow. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e54be104180d81b61c5fcc29ccb7960f9b78476e;p=oota-llvm.git Add runtime library names for pow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42880 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/RuntimeLibcalls.h b/include/llvm/CodeGen/RuntimeLibcalls.h index 5327d68106a..47bb585afff 100644 --- a/include/llvm/CodeGen/RuntimeLibcalls.h +++ b/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/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index d55b7452ee5..cffb03da520 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/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";