From: Chris Lattner Date: Mon, 10 Jan 2005 21:02:37 +0000 (+0000) Subject: Lower to the correct functions. This fixes FreeBench/fourinarow X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6b7598b9955520af8942740acda96a99b005c839;p=oota-llvm.git Lower to the correct functions. This fixes FreeBench/fourinarow git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19436 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 649c34cc766..e0ddfa1b3d0 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -795,9 +795,9 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){ 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