From 6b7598b9955520af8942740acda96a99b005c839 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 10 Jan 2005 21:02:37 +0000 Subject: [PATCH] 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 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1