================
@@ -11151,6 +11161,20 @@ SDValue
PPCTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
SDLoc dl(Op);
+ // Lowers BCD intrinsics with rounding operand
+ auto MapNodeWithSplatVector = [&](unsigned Opcode) -> SDValue {
+ SDValue SplatVal =
+ DAG.getNode(ISD::SPLAT_VECTOR, dl, MVT::v4i32, Op.getOperand(2));
----------------
redstar wrote:
You cannot generate a SPLAT_VECTOR with a pattern. You either have to create
patterns for all the PPC opcodes SPLAT_VECTOR maps to, or introducing a pseudo
instruction which is resolved later. Both seems more work than the simple
function here.
https://github.com/llvm/llvm-project/pull/154715
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits