Home
last modified time | relevance | path

Searched refs:CPSR (Results 1 – 25 of 37) sorted by relevance

12

/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DThumb2SizeReduction.cpp257 if (*Regs == ARM::CPSR) in HasImplicitCPSRDef()
305 if (Reg == 0 || Reg == ARM::CPSR) in canAddPseudoFlagDep()
385 if (Reg == 0 || Reg == ARM::CPSR) in VerifyLowRegs()
809 HasCC = (MI->getOperand(NumOps-1).getReg() == ARM::CPSR); in ReduceTo2Addr()
873 if (!Reg || Reg == ARM::CPSR) in ReduceToNarrow()
901 HasCC = (MI->getOperand(NumOps-1).getReg() == ARM::CPSR); in ReduceToNarrow()
978 if (MO.getReg() != ARM::CPSR) in UpdateCPSRDef()
993 if (MO.getReg() != ARM::CPSR) in UpdateCPSRUse()
1034 bool LiveCPSR = MBB.isLiveIn(ARM::CPSR); in ReduceMBB()
1089 if (BundleMI->killsRegister(ARM::CPSR)) in ReduceMBB()
[all …]
H A DARMInstrThumb.td403 let Defs = [CPSR];
927 let isCommutable = 1, Uses = [CPSR] in
965 let isCommutable = 1, Uses = [CPSR] in
1062 let isCompare = 1, Defs = [CPSR] in {
1077 } // isCompare = 1, Defs = [CPSR]
1080 let isCompare = 1, Defs = [CPSR] in {
1109 } // isCompare = 1, Defs = [CPSR]
1187 let Defs = [CPSR] in
1268 let Uses = [CPSR] in
1314 /// instruction modifies the CPSR register.
[all …]
H A DThumb1InstrInfo.cpp60 if (MBB.computeRegisterLiveness(RegInfo, ARM::CPSR, I) in copyPhysReg()
64 ->addRegisterDead(ARM::CPSR, RegInfo); in copyPhysReg()
H A DThumb2ITBlockPass.cpp110 if (Reg == ARM::CPSR) in TrackDefUses()
179 MI->getOperand(MCID.getNumOperands() - 1).getReg() == ARM::CPSR) in MoveCopyOutOfITBlock()
H A DARMInstrThumb2.td582 /// changed to modify CPSR.
832 let Defs = [CPSR], Uses = [CPSR] in {
838 [(set rGPR:$Rd, CPSR, (opnode rGPR:$Rn, t2_so_imm:$imm, CPSR))]>,
848 [(set rGPR:$Rd, CPSR, (opnode rGPR:$Rn, rGPR:$Rm, CPSR))]>,
862 [(set rGPR:$Rd, CPSR, (opnode rGPR:$Rn, t2_so_reg:$ShiftedRm, CPSR))]>,
929 let isCompare = 1, Defs = [CPSR] in {
2131 // CPSR and the implicit def of CPSR is not needed.
2390 let Uses = [CPSR] in {
2546 /// changed to modify CPSR.
4098 let Defs = [CPSR] in
[all …]
H A DARMBaseInstrInfo.cpp688 if (MO.getReg() != ARM::CPSR) in IsCPSRDead()
898 } else if (SrcReg == ARM::CPSR) { in copyPhysReg()
901 } else if (DestReg == ARM::CPSR) { in copyPhysReg()
2026 if (CC == ARMCC::AL || PredReg != ARM::CPSR) in commuteInstructionImpl()
2821 if (Instr.modifiesRegister(ARM::CPSR, TRI) || in optimizeCompareInstr()
2822 Instr.readsRegister(ARM::CPSR, TRI)) in optimizeCompareInstr()
2956 if ((*SI)->isLiveIn(ARM::CPSR)) in optimizeCompareInstr()
2963 MI->getOperand(5).setReg(ARM::CPSR); in optimizeCompareInstr()
2975 MI->clearRegisterDeads(ARM::CPSR); in optimizeCompareInstr()
3015 if (MO.getReg() == ARM::CPSR && !MO.isDead()) in FoldImmediate()
[all …]
H A DARMFastISel.cpp260 if (MO.getReg() == ARM::CPSR) in DefinesOptionalPredicate()
261 *CPSR = true; in DefinesOptionalPredicate()
298 bool CPSR = false; in AddOptionalDefs() local
299 if (DefinesOptionalPredicate(MI, &CPSR)) in AddOptionalDefs()
300 MIB.add(CPSR ? t1CondCodeOp() : condCodeOp()); in AddOptionalDefs()
1269 .addMBB(TBB).addImm(ARMPred).addReg(ARM::CPSR); in SelectBranch()
1292 .addMBB(TBB).addImm(CCMode).addReg(ARM::CPSR); in SelectBranch()
1504 .addImm(ARMPred).addReg(ARM::CPSR); in SelectCmp()
1688 .addReg(ARM::CPSR); in SelectSelect()
1696 .addReg(ARM::CPSR); in SelectSelect()
[all …]
H A DARMInstrInfo.td88 // SDTBinaryArithWithFlagsInOut - RES1, CPSR = op LHS, RHS, CPSR
1718 let hasPostISelHook = 1, Defs = [CPSR], Uses = [CPSR] in {
1721 [(set GPR:$Rd, CPSR, (opnode GPR:$Rn, mod_imm:$imm, CPSR))]>,
1734 [(set GPR:$Rd, CPSR, (opnode GPR:$Rn, GPR:$Rm, CPSR))]>,
1788 let hasPostISelHook = 1, Defs = [CPSR], Uses = [CPSR] in {
3505 let Uses = [CPSR] in
3513 let Defs = [CPSR] in {
3673 // CPSR and the implicit def of CPSR is not needed.
4752 Defs = [CPSR] in {
5558 let Defs = [CPSR] in
[all …]
H A DARMMCInstLower.cpp79 if (MO.isImplicit() && MO.getReg() != ARM::CPSR) in lowerOperand()
H A DARM.td271 /// Some instructions update CPSR partially, which can add false dependency for
273 /// mapped to a separate physical register. Avoid partial CPSR update for these
277 "Avoid CPSR partial update for OOO execution">;
279 /// Disable +1 predication cost for instructions updating CPSR.
284 "Disable +1 predication cost for instructions updating CPSR">;
H A DARMInstructionSelector.cpp549 .add(predOps(Cond, ARM::CPSR)); in insertComparison()
706 .add(predOps(ARMCC::EQ, ARM::CPSR)); in selectSelect()
1001 .add(predOps(ARMCC::NE, ARM::CPSR)); in select()
H A DARMExpandPseudoInsts.cpp975 .addReg(ARM::CPSR, RegState::Kill); in ExpandCMP_SWAP()
998 .addReg(ARM::CPSR, RegState::Kill); in ExpandCMP_SWAP()
1090 .addImm(ARMCC::EQ).addReg(ARM::CPSR, RegState::Kill); in ExpandCMP_SWAP_64()
1096 .addReg(ARM::CPSR, RegState::Kill); in ExpandCMP_SWAP_64()
1118 .addReg(ARM::CPSR, RegState::Kill); in ExpandCMP_SWAP_64()
1379 .addReg(ARM::CPSR, RegState::Define); in ExpandMI()
1569 .addReg(ARM::CPSR, RegState::Undef); in ExpandMI()
H A DARMAsmPrinter.cpp1609 .addReg(ARM::CPSR) in EmitInstruction()
1665 .addReg(ARM::CPSR) in EmitInstruction()
1796 .addReg(ARM::CPSR) in EmitInstruction()
1815 .addReg(ARM::CPSR) in EmitInstruction()
1830 .addReg(ARM::CPSR) in EmitInstruction()
H A DARMISelLowering.cpp8439 .addReg(ARM::CPSR); in EmitSjLjDispatchBlock()
8496 .addReg(ARM::CPSR); in EmitSjLjDispatchBlock()
8598 .addReg(ARM::CPSR); in EmitSjLjDispatchBlock()
9122 .addReg(ARM::CPSR, in EmitLowered__chkstk()
9138 .addReg(ARM::CPSR, in EmitLowered__chkstk()
9181 .addReg(ARM::CPSR); in EmitLowered__dbzchk()
9199 if (mi.readsRegister(ARM::CPSR)) in checkAndUpdateCPSRKill()
9212 if (succ->isLiveIn(ARM::CPSR)) in checkAndUpdateCPSRKill()
9326 copy0MBB->addLiveIn(ARM::CPSR); in EmitInstrWithCustomInserter()
9327 sinkMBB->addLiveIn(ARM::CPSR); in EmitInstrWithCustomInserter()
[all …]
H A DARMBaseInstrInfo.h471 return MachineOperand::CreateReg(ARM::CPSR,
H A DThumb1FrameLowering.cpp368 .addDef(ARM::CPSR) in emitPrologue()
374 .addDef(ARM::CPSR) in emitPrologue()
H A DARMRegisterInfo.td175 def CPSR : ARMReg<0, "cpsr">;
289 def CCR : RegisterClass<"ARM", [i32], 32, (add CPSR)> {
H A DThumb2InstrInfo.cpp489 !MI.definesRegister(ARM::CPSR)) { in rewriteT2FrameIndex()
/freebsd-12.1/contrib/gdb/gdb/
H A Dsparc-stub.c119 Y, PSR, WIM, TBR, PC, NPC, FPSR, CPSR }; enumerator
/freebsd-12.1/sys/dev/cx/
H A Dcxreg.h77 #define CPSR(b) R(b,0xd4) /* CRC polynomial select register */ macro
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/
H A DSparcRegisterInfo.td67 def CPSR : SparcCtrlReg<0, "CPSR">; // Co-processor state register.
/freebsd-12.1/contrib/llvm/lib/Target/ARM/AsmParser/
H A DARMAsmParser.cpp2018 unsigned RegNum = getCondCode() == ARMCC::AL ? 0: ARM::CPSR; in addCondCodeOperands()
8424 Inst.getOperand(5).getReg() == (inITBlock() ? 0 : ARM::CPSR) && in processInstruction()
8474 Inst.getOpcode() == ARM::t2MOVSsr ? ARM::CPSR : 0)); in processInstruction()
8481 Inst.getOpcode() == ARM::t2MOVSsr ? ARM::CPSR : 0)); in processInstruction()
8527 Inst.getOpcode() == ARM::t2MOVSsi ? ARM::CPSR : 0)); in processInstruction()
8535 Inst.getOpcode() == ARM::t2MOVSsi ? ARM::CPSR : 0)); in processInstruction()
8893 Inst.getOperand(4).getReg() == ARM::CPSR && in processInstruction()
9098 if (isThumbOne() && Inst.getOperand(OpNo).getReg() != ARM::CPSR) in checkTargetMatchPredicate()
9102 if (isThumbTwo() && Inst.getOperand(OpNo).getReg() != ARM::CPSR && in checkTargetMatchPredicate()
9105 if (isThumbTwo() && Inst.getOperand(OpNo).getReg() == ARM::CPSR && in checkTargetMatchPredicate()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp900 case Sparc::CPSR: in parseSparcAsmOperand()
1048 RegNo = Sparc::CPSR; in matchRegisterName()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCCodeEmitter.cpp283 return MI.getOperand(Op).getReg() == ARM::CPSR; in getCCOutOpValue()
695 (MCOp2.getReg() == 0 || MCOp2.getReg() == ARM::CPSR)) { in HasConditionalBranch()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/Disassembler/
H A DARMDisassembler.cpp564 MI.insert(I, MCOperand::createReg(InITBlock ? 0 : ARM::CPSR)); in AddThumb1SBit()
569 MI.insert(I, MCOperand::createReg(InITBlock ? 0 : ARM::CPSR)); in AddThumb1SBit()
639 MI.insert(I, MCOperand::createReg(ARM::CPSR)); in AddThumbPredicate()
649 MI.insert(I, MCOperand::createReg(ARM::CPSR)); in AddThumbPredicate()
677 I->setReg(ARM::CPSR); in UpdateThumbVFPPredicate()
1122 Inst.addOperand(MCOperand::createReg(ARM::CPSR)); in DecodePredicateOperand()
1129 Inst.addOperand(MCOperand::createReg(ARM::CPSR)); in DecodeCCOutOperand()

12