[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 16 20:32:45 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.304 -> 1.305
---
Log message:

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).



---
Diffs of the changes:  (+1 -1)

 LegalizeDAG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.304 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.305
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.304	Wed Feb 15 13:34:44 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Thu Feb 16 22:32:33 2006
@@ -3132,7 +3132,7 @@
   
   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






More information about the llvm-commits mailing list