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:
1cb0ace
)
Expand UREM / SREM into libcalls
author
Anton Korobeynikov
<asl@math.spbu.ru>
Fri, 8 May 2009 18:50:41 +0000
(18:50 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Fri, 8 May 2009 18:50:41 +0000
(18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71236
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 2c7c38ff9c8ea1e4cecce8b4acf9cdcf38c17c97..4bed3d617287edcc942f77e064012bc2f033ad26 100644
(file)
--- a/
lib/Target/MSP430/MSP430ISelLowering.cpp
+++ b/
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) {