diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-29 06:44:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-29 06:44:39 +0000 |
commit | 473a99073cc29f59809a0d5dfee11f5e9e6ad2b7 (patch) | |
tree | 80802c5b902028b62054f69fe6c46d46c0eac254 | |
parent | a48bc53cad55452f534f7b5dad06a0d4c4607cc6 (diff) |
Fix two bugs in my patch earlier today that broke int->fp conversion on X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23522 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 918f825839..12599089f2 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -261,7 +261,7 @@ SDOperand SelectionDAGLegalize::ExpandLegalINT_TO_FP(bool isSigned, } NeedsAnotherIteration = true; - return DAG.getNode(ISD::ADD, DestVT, Tmp1, FudgeInReg); + return DAG.getNode(ISD::FADD, DestVT, Tmp1, FudgeInReg); } /// PromoteLegalINT_TO_FP - This function is responsible for legalizing a @@ -2810,7 +2810,7 @@ ExpandIntToFP(bool isSigned, MVT::ValueType DestTy, SDOperand Source) { FudgeInReg = DAG.getExtLoad(ISD::EXTLOAD, MVT::f64, DAG.getEntryNode(), CPIdx, DAG.getSrcValue(NULL), MVT::f32); } - return DAG.getNode(ISD::ADD, DestTy, SignedConv, FudgeInReg); + return DAG.getNode(ISD::FADD, DestTy, SignedConv, FudgeInReg); } // Check to see if the target has a custom way to lower this. If so, use it. |