[clang] [llvm] [PowerPC] Add intrinsics for rldimi/rlwimi/rlwnm (PR #82968)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 26 14:20:25 PST 2024
================
@@ -10737,6 +10752,43 @@ SDValue PPCTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
return DAG.getRegister(PPC::X13, MVT::i64);
return DAG.getRegister(PPC::R2, MVT::i32);
+ case Intrinsic::ppc_rldimi: {
+ uint64_t SH = Op.getConstantOperandVal(3);
+ unsigned MB = 0, ME = 0;
+ if (!isContiguousMask(Op.getConstantOperandAPInt(4), MB, ME, 64) ||
+ ME != 63 - SH)
+ llvm_unreachable("invalid rldimi mask!");
----------------
efriedma-quic wrote:
Please use report_fatal_error for this sort of check.
https://github.com/llvm/llvm-project/pull/82968
More information about the cfe-commits
mailing list