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
This commit is contained in:
parent
67c21b6c46
commit
9ec392b2aa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue