Lines Matching defs:N1
1069 TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
1086 return DAG.getSetCC(dl, VT, N1, N0, ISD::getSetCCSwappedOperands(Cond));
1088 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) {
1353 return DAG.getSetCC(dl, VT, Val, N1,
1411 DAG.getConstant(C1-1, N1.getValueType()),
1419 DAG.getConstant(C1+1, N1.getValueType()),
1434 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETNE);
1437 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETNE);
1457 DAG.getConstant(0, N1.getValueType()),
1465 N1.getValueType());
1548 SDValue O = DAG.FoldSetCC(VT, N0, N1, Cond, dl);
1550 } else if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(N1.getNode())) {
1583 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETOLE);
1586 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETULE);
1589 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETUGT);
1592 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETOGT);
1596 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETOGE);
1599 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETUGE);
1602 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETULT);
1605 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETOLT);
1611 if (N0 == N1) {
1639 return DAG.getSetCC(dl, VT, N0, N1, NewCond);
1647 if (N0.getOpcode() == N1.getOpcode()) {
1648 if (N0.getOperand(0) == N1.getOperand(0))
1649 return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(1), Cond);
1650 if (N0.getOperand(1) == N1.getOperand(1))
1651 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(0), Cond);
1654 if (N0.getOperand(0) == N1.getOperand(1))
1655 return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(0),
1657 if (N0.getOperand(1) == N1.getOperand(0))
1658 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(1),
1667 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(N1)) {
1712 if (N0.getOperand(0) == N1)
1715 if (N0.getOperand(1) == N1) {
1722 SDValue SH = DAG.getNode(ISD::SHL, dl, N1.getValueType(), N1,
1723 DAG.getConstant(1, getShiftAmountTy(N1.getValueType())));
1732 if (N1.getOpcode() == ISD::ADD || N1.getOpcode() == ISD::SUB ||
1733 N1.getOpcode() == ISD::XOR) {
1735 if (N1.getOperand(0) == N0)
1736 return DAG.getSetCC(dl, VT, N1.getOperand(1),
1737 DAG.getConstant(0, N1.getValueType()), Cond);
1738 if (N1.getOperand(1) == N0) {
1739 if (DAG.isCommutativeBinOp(N1.getOpcode()))
1740 return DAG.getSetCC(dl, VT, N1.getOperand(0),
1741 DAG.getConstant(0, N1.getValueType()), Cond);
1742 if (N1.getNode()->hasOneUse()) {
1743 assert(N1.getOpcode() == ISD::SUB && "Unexpected operation!");
1745 SDValue SH = DAG.getNode(ISD::SHL, dl, N1.getValueType(), N0,
1749 return DAG.getSetCC(dl, VT, SH, N1.getOperand(0), Cond);
1759 if (N0.getOperand(0) == N1 || N0.getOperand(1) == N1) {
1760 if (ValueHasExactlyOneBitSet(N1, DAG)) {
1762 SDValue Zero = DAG.getConstant(0, N1.getValueType());
1766 if (N1.getOpcode() == ISD::AND)
1767 if (N1.getOperand(0) == N0 || N1.getOperand(1) == N0) {
1771 return DAG.getSetCC(dl, VT, N1, Zero, Cond);
1782 Temp = DAG.getNode(ISD::XOR, dl, MVT::i1, N0, N1);
1788 N0 = DAG.getNode(ISD::XOR, dl, MVT::i1, N0, N1);
1793 N0 = DAG.getNode(ISD::AND, dl, MVT::i1, N1, Temp);
1799 Temp = DAG.getNOT(dl, N1, MVT::i1);
1807 N0 = DAG.getNode(ISD::OR, dl, MVT::i1, N1, Temp);
1813 Temp = DAG.getNOT(dl, N1, MVT::i1);
1842 SDValue N1 = N->getOperand(0);
1844 if (isGAPlusOffset(N1.getNode(), GA, Offset)) {
1851 ConstantSDNode *V = dyn_cast<ConstantSDNode>(N1);