diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-17 04:32:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-17 04:32:33 +0000 |
commit | 25125697fb0a761da440b222671cf2d6d4deaeac (patch) | |
tree | 8352d3ad580b81cacc2ef81f1e0167f8fbc6c6a7 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | a648df2871d2f266cdaf8a913553bfb5de027ee0 (diff) |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index d7c9f16867..70e97ab52e 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 |