@@ -4059,12 +4059,12 @@ getAArch64XALUOOp(AArch64CC::CondCode &CC, SDValue Op, SelectionDAG &DAG) {
40594059 DAG.getConstant(63, DL, MVT::i64));
40604060 // It is important that LowerBits is last, otherwise the arithmetic
40614061 // shift will not be folded into the compare (SUBS).
4062- SDVTList VTs = DAG.getVTList(MVT::i64, MVT::i32 );
4062+ SDVTList VTs = DAG.getVTList(MVT::i64, MVT_CC );
40634063 Overflow = DAG.getNode(AArch64ISD::SUBS, DL, VTs, UpperBits, LowerBits)
40644064 .getValue(1);
40654065 } else {
40664066 SDValue UpperBits = DAG.getNode(ISD::MULHU, DL, MVT::i64, LHS, RHS);
4067- SDVTList VTs = DAG.getVTList(MVT::i64, MVT::i32 );
4067+ SDVTList VTs = DAG.getVTList(MVT::i64, MVT_CC );
40684068 Overflow =
40694069 DAG.getNode(AArch64ISD::SUBS, DL, VTs,
40704070 DAG.getConstant(0, DL, MVT::i64),
@@ -4075,7 +4075,7 @@ getAArch64XALUOOp(AArch64CC::CondCode &CC, SDValue Op, SelectionDAG &DAG) {
40754075 } // switch (...)
40764076
40774077 if (Opc) {
4078- SDVTList VTs = DAG.getVTList(Op->getValueType(0), MVT::i32 );
4078+ SDVTList VTs = DAG.getVTList(Op->getValueType(0), MVT_CC );
40794079
40804080 // Emit the AArch64 operation with overflow check.
40814081 Value = DAG.getNode(Opc, DL, VTs, LHS, RHS);
@@ -7038,7 +7038,7 @@ SDValue AArch64TargetLowering::LowerABS(SDValue Op, SelectionDAG &DAG) const {
70387038 Op.getOperand(0));
70397039 // Generate SUBS & CSEL.
70407040 SDValue Cmp =
7041- DAG.getNode(AArch64ISD::SUBS, DL, DAG.getVTList(VT, MVT::i32 ),
7041+ DAG.getNode(AArch64ISD::SUBS, DL, DAG.getVTList(VT, MVT_CC ),
70427042 Op.getOperand(0), DAG.getConstant(0, DL, VT));
70437043 return DAG.getNode(AArch64ISD::CSEL, DL, VT, Op.getOperand(0), Neg,
70447044 DAG.getConstant(AArch64CC::PL, DL, MVT::i32),
@@ -18593,7 +18593,7 @@ AArch64TargetLowering::BuildSREMPow2(SDNode *N, const APInt &Divisor,
1859318593 Created.push_back(And.getNode());
1859418594 } else {
1859518595 SDValue CCVal = DAG.getConstant(AArch64CC::MI, DL, MVT_CC);
18596- SDVTList VTs = DAG.getVTList(VT, MVT::i32 );
18596+ SDVTList VTs = DAG.getVTList(VT, MVT_CC );
1859718597
1859818598 SDValue Negs = DAG.getNode(AArch64ISD::SUBS, DL, VTs, Zero, N0);
1859918599 SDValue AndPos = DAG.getNode(ISD::AND, DL, VT, N0, Pow2MinusOne);
0 commit comments