Lines Matching refs:CPSR
226 bool DefinesOptionalPredicate(MachineInstr *MI, bool *CPSR);
239 // default CCReg argument. Sets CPSR if we're setting CPSR instead of CCR.
240 bool ARMFastISel::DefinesOptionalPredicate(MachineInstr *MI, bool *CPSR) {
244 // Look to see if our OptionalDef is defining CPSR or CCR.
248 if (MO.getReg() == ARM::CPSR)
249 *CPSR = true;
272 // CPSR defs that need to be added before the remaining operands. See s_cc_out
285 // defines CPSR. All other OptionalDefines in ARM are the CCR register.
286 bool CPSR = false;
287 if (DefinesOptionalPredicate(MI, &CPSR)) {
288 if (CPSR)
1367 .addMBB(TBB).addImm(ARMPred).addReg(ARM::CPSR);
1391 .addMBB(TBB).addImm(CCMode).addReg(ARM::CPSR);
1428 .addMBB(TBB).addImm(CCMode).addReg(ARM::CPSR);
1588 // ARMEmitCmp emits a FMSTAT when necessary, so it's always safe to use CPSR.
1591 .addImm(ARMPred).addReg(ARM::CPSR);
1769 .addReg(Op2Reg).addReg(Op1Reg).addImm(ARMCC::NE).addReg(ARM::CPSR);
1773 .addReg(Op1Reg).addImm(Imm).addImm(ARMCC::EQ).addReg(ARM::CPSR);
2765 // 16-bit Thumb instructions always set CPSR (unless they're in an IT block).
2777 // CPSR is set only by 16-bit Thumb instructions.
2793 MIB.addReg(ARM::CPSR, RegState::Define);