diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-08 18:50:41 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-08 18:50:41 +0000 |
commit | 0616c3b678e441f235f80247bb66d59c9cd85226 (patch) | |
tree | 2f050a9016f93d120a47ff1a33d68735bc8cdc3c /lib/Target/MSP430 | |
parent | 1cb0acee8ae0b802f9689d7145cdbfcb652965f0 (diff) | |
download | external_llvm-0616c3b678e441f235f80247bb66d59c9cd85226.zip external_llvm-0616c3b678e441f235f80247bb66d59c9cd85226.tar.gz external_llvm-0616c3b678e441f235f80247bb66d59c9cd85226.tar.bz2 |
Expand UREM / SREM into libcalls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-rw-r--r-- | lib/Target/MSP430/MSP430ISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430ISelLowering.cpp b/lib/Target/MSP430/MSP430ISelLowering.cpp index 2c7c38f..4bed3d6 100644 --- 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) { |