projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
813090c
)
Expand divisions into libcalls
author
Anton Korobeynikov
<asl@math.spbu.ru>
Sun, 3 May 2009 13:18:33 +0000
(13:18 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Sun, 3 May 2009 13:18:33 +0000
(13:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70765
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/MSP430/MSP430ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/MSP430/MSP430ISelLowering.cpp
b/lib/Target/MSP430/MSP430ISelLowering.cpp
index df8072c601683fcad3dd7596bb19da04aebd3605..acfc7c989dd0c57455211373fb21e7d2692442a1 100644
(file)
--- 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) {