From: Chris Lattner Date: Fri, 17 Feb 2006 04:32:33 +0000 (+0000) Subject: Fix another miscompilation exposed by lencode, where we lowered i64->f32 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=25125697fb0a761da440b222671cf2d6d4deaeac;p=oota-llvm.git 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 --- 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