summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-08 18:50:41 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-08 18:50:41 +0000
commit1484cfe945c081eeef95671144a83d3908b6f0ca (patch)
treeb3bfb65deffc025d24dfe0e3ce3834af4c7aacd4 /llvm/lib
parentc3e1b392ae7d7e0b073688bfc63d9e45ee8c3be1 (diff)
downloadbcm5719-llvm-1484cfe945c081eeef95671144a83d3908b6f0ca.tar.gz
bcm5719-llvm-1484cfe945c081eeef95671144a83d3908b6f0ca.zip
Expand UREM / SREM into libcalls
llvm-svn: 71236
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/MSP430/MSP430ISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
index 2c7c38ff9c8..4bed3d61728 100644
--- a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
+++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
@@ -98,8 +98,10 @@ MSP430TargetLowering::MSP430TargetLowering(MSP430TargetMachine &tm) :
setOperationAction(ISD::UDIV, MVT::i16, Expand);
setOperationAction(ISD::UDIVREM, MVT::i16, Expand);
+ setOperationAction(ISD::UREM, MVT::i16, Expand);
setOperationAction(ISD::SDIV, MVT::i16, Expand);
setOperationAction(ISD::SDIVREM, MVT::i16, Expand);
+ setOperationAction(ISD::SREM, MVT::i16, Expand);
}
SDValue MSP430TargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) {
OpenPOWER on IntegriCloud