Fix another miscompilation exposed by lencode, where we lowered i64->f32
authorChris Lattner <sabre@nondot.org>
Fri, 17 Feb 2006 04:32:33 +0000 (04:32 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 17 Feb 2006 04:32:33 +0000 (04:32 +0000)
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

index d7c9f16867d019773782569866c4108e3b59cdef..70e97ab52e996d4f78105e956822f1359fe7ab99 100644 (file)
@@ -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