mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Expand divisions into libcalls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
813090cf89
commit
f2f540261b
@ -93,6 +93,11 @@ MSP430TargetLowering::MSP430TargetLowering(MSP430TargetMachine &tm) :
|
|||||||
setOperationAction(ISD::MULHU, MVT::i16, Expand);
|
setOperationAction(ISD::MULHU, MVT::i16, Expand);
|
||||||
setOperationAction(ISD::SMUL_LOHI, MVT::i16, Expand);
|
setOperationAction(ISD::SMUL_LOHI, MVT::i16, Expand);
|
||||||
setOperationAction(ISD::UMUL_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) {
|
SDValue MSP430TargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user