Lines Matching defs:N3
592 SDValue N2, SDValue N3, ISD::CondCode CC,
595 const SDLoc &DL, SDValue N0, SDValue N1, SDValue N2, SDValue N3,
599 SDValue N2, SDValue N3, ISD::CondCode CC);
5513 // same as SimplifySelectCC. N0<N1 ? N2 : N3.
5515 SDValue N3, ISD::CondCode CC, unsigned &BW,
5517 auto isSignedMinMax = [&](SDValue N0, SDValue N1, SDValue N2, SDValue N3,
5525 ConstantSDNode *N3C = isConstOrConstSplat(peekThroughTruncates(N3));
5529 const APInt &C2 = N3C->getAPIntValue().trunc(N3.getScalarValueSizeInBits());
5536 unsigned Opcode0 = isSignedMinMax(N0, N1, N2, N3, CC);
5543 if (isNullOrNullSplat(N3)) {
5618 SDValue N3, ISD::CondCode CC,
5622 SDValue Fp = isSaturatingMinMax(N0, N1, N2, N3, CC, BW, Unsigned, DAG);
5640 SDValue N3, ISD::CondCode CC,
5643 // select/vselect/select_cc. The two operands pairs for the select (N2/N3) may
5650 ConstantSDNode *N3C = isConstOrConstSplat(N3);
5672 return DAG.getZExtOrTrunc(Sat, SDLoc(N0), N3.getValueType());
12592 SDValue N3 = N->getOperand(3);
12598 if (N2 == N3)
12604 return DAG.getSelect(DL, N2.getValueType(), N0, N3, N2);
12614 return SCCC->isZero() ? N3 : N2;
12625 SCC.getOperand(1), N2, N3, SCC.getOperand(2));
12632 if (SimplifySelectOps(N, N2, N3))
12636 return SimplifySelectCC(DL, N0, N1, N2, N3, CC);
27434 /// Try to fold an expression of the form (N0 cond N1) ? N2 : N3 to a shift and
27437 SDValue N1, SDValue N2, SDValue N3,
27445 if (!isNullConstant(N3) || !XType.bitsGE(AType))
27606 const SDLoc &DL, SDValue N0, SDValue N1, SDValue N2, SDValue N3,
27614 auto *FV = dyn_cast<ConstantFPSDNode>(N3);
27658 /// Simplify an expression of the form (N0 cond N1) ? N2 : N3
27661 SDValue N2, SDValue N3, ISD::CondCode CC,
27664 if (N2 == N3) return N2;
27671 auto *N3C = dyn_cast<ConstantSDNode>(N3.getNode());
27679 return !(SCCC->isZero()) ? N2 : N3;
27684 convertSelectOfFPConstantsToLoadOffset(DL, N0, N1, N2, N3, CC))
27687 if (SDValue V = foldSelectCCToShiftAnd(DL, N0, N1, N2, N3, CC))
27714 return DAG.getNode(ISD::AND, DL, VT, Shr, N3);
27720 bool Fold = N2C && isNullConstant(N3) && N2C->getAPIntValue().isPowerOf2();
27774 SDValue Count = N3;
27810 DAG.getSExtOrTrunc(CC == ISD::SETLT ? N3 : N2, DL, VT));
27813 if (SDValue S = PerformMinMaxFpToSatCombine(N0, N1, N2, N3, CC, DAG))
27815 if (SDValue S = PerformUMinFpToSatCombine(N0, N1, N2, N3, CC, DAG))