Lines Matching full:cpsr
214 bool DefinesOptionalPredicate(MachineInstr *MI, bool *CPSR);
227 // default CCReg argument. Sets CPSR if we're setting CPSR instead of CCR.
228 bool ARMFastISel::DefinesOptionalPredicate(MachineInstr *MI, bool *CPSR) {
232 // Look to see if our OptionalDef is defining CPSR or CCR.
236 if (MO.getReg() == ARM::CPSR)
237 *CPSR = true;
260 // CPSR defs that need to be added before the remaining operands. See s_cc_out
273 // defines CPSR. All other OptionalDefines in ARM are the CCR register.
274 bool CPSR = false;
275 if (DefinesOptionalPredicate(MI, &CPSR)) {
276 if (CPSR)
1277 .addMBB(TBB).addImm(ARMPred).addReg(ARM::CPSR);
1300 .addMBB(TBB).addImm(CCMode).addReg(ARM::CPSR);
1338 .addMBB(TBB).addImm(CCMode).addReg(ARM::CPSR);
1496 // ARMEmitCmp emits a FMSTAT when necessary, so it's always safe to use CPSR.
1499 .addImm(ARMPred).addReg(ARM::CPSR);
1681 .addReg(ARM::CPSR);
1689 .addReg(ARM::CPSR);
2687 // 16-bit Thumb instructions always set CPSR (unless they're in an IT block).
2699 // CPSR is set only by 16-bit Thumb instructions.
2715 MIB.addReg(ARM::CPSR, RegState::Define);