aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:18:33 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:18:33 +0000
commitf2f540261b187bb3fd14646a08f7e79afa1b5d96 (patch)
treebe1dece260b6c30686371b21409cfa9f66a71e03 /lib/Target
parent813090cf891325c715b9f6fb1546e6ce67fa8c8b (diff)
downloadexternal_llvm-f2f540261b187bb3fd14646a08f7e79afa1b5d96.zip
external_llvm-f2f540261b187bb3fd14646a08f7e79afa1b5d96.tar.gz
external_llvm-f2f540261b187bb3fd14646a08f7e79afa1b5d96.tar.bz2
Expand divisions into libcalls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/MSP430/MSP430ISelLowering.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430ISelLowering.cpp b/lib/Target/MSP430/MSP430ISelLowering.cpp
index df8072c..acfc7c9 100644
--- a/lib/Target/MSP430/MSP430ISelLowering.cpp
+++ b/lib/Target/MSP430/MSP430ISelLowering.cpp
@@ -93,6 +93,11 @@ MSP430TargetLowering::MSP430TargetLowering(MSP430TargetMachine &tm) :
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) {