mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
[mips][msa] Added support for matching pcnt from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -166,6 +166,7 @@ addMSAIntType(MVT::SimpleValueType Ty, const TargetRegisterClass *RC) {
|
||||
setOperationAction(ISD::ADD, Ty, Legal);
|
||||
setOperationAction(ISD::AND, Ty, Legal);
|
||||
setOperationAction(ISD::CTLZ, Ty, Legal);
|
||||
setOperationAction(ISD::CTPOP, Ty, Legal);
|
||||
setOperationAction(ISD::MUL, Ty, Legal);
|
||||
setOperationAction(ISD::OR, Ty, Legal);
|
||||
setOperationAction(ISD::SDIV, Ty, Legal);
|
||||
@@ -1012,6 +1013,11 @@ SDValue MipsSETargetLowering::lowerINTRINSIC_WO_CHAIN(SDValue Op,
|
||||
}
|
||||
case Intrinsic::mips_or_v:
|
||||
return lowerMSABinaryIntr(Op, DAG, ISD::OR);
|
||||
case Intrinsic::mips_pcnt_b:
|
||||
case Intrinsic::mips_pcnt_h:
|
||||
case Intrinsic::mips_pcnt_w:
|
||||
case Intrinsic::mips_pcnt_d:
|
||||
return lowerMSAUnaryIntr(Op, DAG, ISD::CTPOP);
|
||||
case Intrinsic::mips_sll_b:
|
||||
case Intrinsic::mips_sll_h:
|
||||
case Intrinsic::mips_sll_w:
|
||||
|
||||
Reference in New Issue
Block a user