diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:14:25 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:14:25 +0000 |
commit | 8725bd22bf91c29e2351a127295c19fea996e2c7 (patch) | |
tree | a21b48cb4d23d5983c1c7739221fe0c54f029571 /lib/Target/MSP430 | |
parent | c31642f7af64bfaed36064b52a5cb2366fd01064 (diff) | |
download | external_llvm-8725bd22bf91c29e2351a127295c19fea996e2c7.zip external_llvm-8725bd22bf91c29e2351a127295c19fea996e2c7.tar.gz external_llvm-8725bd22bf91c29e2351a127295c19fea996e2c7.tar.bz2 |
Expand muls (all mulls!) to libcalls for now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-rw-r--r-- | lib/Target/MSP430/MSP430ISelLowering.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430ISelLowering.cpp b/lib/Target/MSP430/MSP430ISelLowering.cpp index 6cc5cd9..64dffa9 100644 --- a/lib/Target/MSP430/MSP430ISelLowering.cpp +++ b/lib/Target/MSP430/MSP430ISelLowering.cpp @@ -78,6 +78,13 @@ MSP430TargetLowering::MSP430TargetLowering(MSP430TargetMachine &tm) : setOperationAction(ISD::SELECT_CC, MVT::Other, Expand); setOperationAction(ISD::SELECT, MVT::i8, Custom); setOperationAction(ISD::SELECT, MVT::i16, Custom); + + // FIXME: Implement efficiently multiplication by a constant + setOperationAction(ISD::MUL, MVT::i16, Expand); + setOperationAction(ISD::MULHS, MVT::i16, Expand); + setOperationAction(ISD::MULHU, MVT::i16, Expand); + setOperationAction(ISD::SMUL_LOHI, MVT::i16, Expand); + setOperationAction(ISD::UMUL_LOHI, MVT::i16, Expand); } SDValue MSP430TargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) { |