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

Chris Lattner lattner at cs.uiuc.edu
Mon Jan 10 13:02:51 PST 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.18 -> 1.19
---
Log message:

Lower to the correct functions.  This fixes FreeBench/fourinarow


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

Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.18 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.19
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.18	Sun Jan  9 13:43:23 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Mon Jan 10 15:02:37 2005
@@ -795,9 +795,9 @@
   case ISD::UDIV: LibCallName = "__udivdi3"; break;
   case ISD::SREM: LibCallName = "__moddi3"; break;
   case ISD::UREM: LibCallName = "__umoddi3"; break;
-  case ISD::SHL:  LibCallName = "__lshrdi3"; break;
+  case ISD::SHL:  LibCallName = "__ashldi3"; break;
   case ISD::SRA:  LibCallName = "__ashrdi3"; break;
-  case ISD::SRL:  LibCallName = "__ashldi3"; break;
+  case ISD::SRL:  LibCallName = "__lshrdi3"; break;
   }
 
   // Int2FP -> __floatdisf/__floatdidf






More information about the llvm-commits mailing list