[llvm-commits] [llvm] r70765 - /llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sun May 3 06:18:33 PDT 2009
Author: asl
Date: Sun May 3 08:18:33 2009
New Revision: 70765
URL: http://llvm.org/viewvc/llvm-project?rev=70765&view=rev
Log:
Expand divisions into libcalls
Modified:
llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
Modified: llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp?rev=70765&r1=70764&r2=70765&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp Sun May 3 08:18:33 2009
@@ -93,6 +93,11 @@
setOperationAction(ISD::MULHU, MVT::i16, Expand);
setOperationAction(ISD::SMUL_LOHI, MVT::i16, Expand);
setOperationAction(ISD::UMUL_LOHI, MVT::i16, Expand);
+
+ setOperationAction(ISD::UDIV, MVT::i16, Expand);
+ setOperationAction(ISD::UDIVREM, MVT::i16, Expand);
+ setOperationAction(ISD::SDIV, MVT::i16, Expand);
+ setOperationAction(ISD::SDIVREM, MVT::i16, Expand);
}
SDValue MSP430TargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) {
More information about the llvm-commits
mailing list