@@ -11301,21 +11301,21 @@ SDValue PPCTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
1130111301 break;
1130211302 }
1130311303
11304+ SDValue GlueOp = CompNode.getValue(1);
1130411305 if (Subtarget.isISA3_1()) {
1130511306 SDValue SubRegIdx = DAG.getTargetConstant(Bitx, dl, MVT::i32);
1130611307 SDValue CR6Reg = DAG.getRegister(PPC::CR6, MVT::i32);
1130711308 SDValue CRBit =
1130811309 SDValue(DAG.getMachineNode(TargetOpcode::EXTRACT_SUBREG, dl, MVT::i1,
11309- CR6Reg, SubRegIdx, CompNode.getValue(1)),
11310- 0);
11310+ CR6Reg, SubRegIdx, GlueOp), 0);
1131111311 return DAG.getNode(SetOp, dl, MVT::i32, CRBit);
1131211312 }
1131311313
1131411314 // Now that we have the comparison, emit a copy from the CR to a GPR.
1131511315 // This is flagged to the above dot comparison.
1131611316 SDValue Flags =
1131711317 DAG.getNode(PPCISD::MFOCRF, dl, MVT::i32,
11318- DAG.getRegister(PPC::CR6, MVT::i32), CompNode.getValue(1) );
11318+ DAG.getRegister(PPC::CR6, MVT::i32), GlueOp );
1131911319
1132011320 // Shift the bit into the low position.
1132111321 Flags = DAG.getNode(ISD::SRL, dl, MVT::i32, Flags,
0 commit comments