summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-03-14 21:08:40 +0000
committerDuncan Sands <baldrick@free.fr>2010-03-14 21:08:40 +0000
commitca595495e4fac48baa5f57da55319b0bfb5bcc74 (patch)
treebc2f90753c72e0aaf56e4fa79a906dfa98963a23 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent00fd0b674956af90485ffb3fa7313262a9af8957 (diff)
downloadbcm5719-llvm-ca595495e4fac48baa5f57da55319b0bfb5bcc74.tar.gz
bcm5719-llvm-ca595495e4fac48baa5f57da55319b0bfb5bcc74.zip
Turn calls to copysignl into an FCOPYSIGN node. Handle FCOPYSIGN nodes
with ppc_f128 type by having the type legalizer turn these back into a call to copysignl. llvm-svn: 98514
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 4df4d77be77..f7ef2d640b4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -174,6 +174,10 @@ static void InitLibcallNames(const char **Names) {
Names[RTLIB::FLOOR_F64] = "floor";
Names[RTLIB::FLOOR_F80] = "floorl";
Names[RTLIB::FLOOR_PPCF128] = "floorl";
+ Names[RTLIB::COPYSIGN_F32] = "copysignf";
+ Names[RTLIB::COPYSIGN_F64] = "copysign";
+ Names[RTLIB::COPYSIGN_F80] = "copysignl";
+ Names[RTLIB::COPYSIGN_PPCF128] = "copysignl";
Names[RTLIB::FPEXT_F32_F64] = "__extendsfdf2";
Names[RTLIB::FPEXT_F16_F32] = "__gnu_h2f_ieee";
Names[RTLIB::FPROUND_F32_F16] = "__gnu_f2h_ieee";
OpenPOWER on IntegriCloud