From 25125697fb0a761da440b222671cf2d6d4deaeac Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 17 Feb 2006 04:32:33 +0000 Subject: [PATCH] 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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26254 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index d7c9f16867d..70e97ab52e9 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/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 -- 2.34.1