llvm.org GIT mirror llvm / 2cc4013
Remove some duplicate op action entries and reorganize. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129781 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 9 years ago
1 changed file(s) with 6 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
510510 }
511511
512512 // i64 operation support.
513 setOperationAction(ISD::MUL, MVT::i64, Expand);
514 setOperationAction(ISD::MULHU, MVT::i32, Expand);
513515 if (Subtarget->isThumb1Only()) {
514 setOperationAction(ISD::MUL, MVT::i64, Expand);
515 setOperationAction(ISD::MULHU, MVT::i32, Expand);
516 setOperationAction(ISD::MULHS, MVT::i32, Expand);
517516 setOperationAction(ISD::UMUL_LOHI, MVT::i32, Expand);
518517 setOperationAction(ISD::SMUL_LOHI, MVT::i32, Expand);
519 } else {
520 setOperationAction(ISD::MUL, MVT::i64, Expand);
521 setOperationAction(ISD::MULHU, MVT::i32, Expand);
522 if (!Subtarget->hasV6Ops())
523 setOperationAction(ISD::MULHS, MVT::i32, Expand);
524 }
518 }
519 if (Subtarget->isThumb1Only() || !Subtarget->hasV6Ops())
520 setOperationAction(ISD::MULHS, MVT::i32, Expand);
521
525522 setOperationAction(ISD::SHL_PARTS, MVT::i32, Custom);
526523 setOperationAction(ISD::SRA_PARTS, MVT::i32, Custom);
527524 setOperationAction(ISD::SRL_PARTS, MVT::i32, Custom);