summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-17 04:32:33 +0000
committerChris Lattner <sabre@nondot.org>2006-02-17 04:32:33 +0000
commit9ec392b2aa6ad02cfba5068ec163af7a2adc0476 (patch)
treea023fd8f98979467a641b24720478e18d868bb05 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent67c21b6c46cfe6d8ec40105f17b010b4750deb29 (diff)
downloadbcm5719-llvm-9ec392b2aa6ad02cfba5068ec163af7a2adc0476.tar.gz
bcm5719-llvm-9ec392b2aa6ad02cfba5068ec163af7a2adc0476.zip
Fix another miscompilation exposed by lencode, where we lowered i64->f32
conversions to __floatdidf instead of __floatdisf on targets that support f32 but not i64 (e.g. sparc). llvm-svn: 26254
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index d7c9f16867d..70e97ab52e9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3132,7 +3132,7 @@ ExpandIntToFP(bool isSigned, MVT::ValueType DestTy, SDOperand Source) {
Source = DAG.getNode(ISD::SINT_TO_FP, DestTy, Source);
SDOperand UnusedHiPart;
- return ExpandLibCall("__floatdidf", Source.Val, UnusedHiPart);
+ return ExpandLibCall(FnName, Source.Val, UnusedHiPart);
}
/// ExpandLegalINT_TO_FP - This function is responsible for legalizing a
OpenPOWER on IntegriCloud