Lines Matching defs:ATReg
49 ATReg(1), Reorder(true), Macro(true), Features(Features_) {}
52 ATReg = Opts->getATRegIndex();
58 unsigned getATRegIndex() const { return ATReg; }
63 ATReg = Reg;
86 unsigned ATReg;
2181 unsigned ATReg = getATReg(IDLoc);
2182 if (!ATReg)
2184 TmpReg = ATReg;
2421 unsigned ATReg = getATReg(IDLoc);
2422 if (!ATReg)
2424 TmpReg = ATReg;
2449 unsigned ATReg = getATReg(IDLoc);
2450 if (!ATReg)
2469 TOut.emitRX(Mips::LUi, ATReg, MCOperand::createExpr(HighestExpr), IDLoc,
2471 TOut.emitRRX(Mips::DADDiu, ATReg, ATReg,
2473 TOut.emitRRI(Mips::DSLL, ATReg, ATReg, 16, IDLoc, STI);
2474 TOut.emitRRX(Mips::DADDiu, ATReg, ATReg, MCOperand::createExpr(HiExpr),
2476 TOut.emitRRI(Mips::DSLL, ATReg, ATReg, 16, IDLoc, STI);
2477 TOut.emitRRX(Mips::DADDiu, ATReg, ATReg, MCOperand::createExpr(LoExpr),
2479 TOut.emitRRR(Mips::DADDu, DstReg, ATReg, SrcReg, IDLoc, STI);
2494 TOut.emitRX(Mips::LUi, ATReg, MCOperand::createExpr(HiExpr), IDLoc, STI);
2497 TOut.emitRRX(Mips::DADDiu, ATReg, ATReg, MCOperand::createExpr(LoExpr),
2500 TOut.emitRRR(Mips::DADDu, DstReg, DstReg, ATReg, IDLoc, STI);
2521 unsigned ATReg = getATReg(IDLoc);
2522 if (!ATReg)
2524 TmpReg = ATReg;
2618 unsigned ATReg = getATReg(IDLoc);
2619 if (!ATReg)
2622 if (loadImmediate(ImmValue, ATReg, Mips::NoRegister, !isGP64bit(), true,
2626 TOut.emitRRX(OpCode, DstRegOp.getReg(), ATReg, MemOffsetOp, IDLoc, STI);
2666 unsigned ATReg = getATReg(IDLoc);
2667 if (!ATReg)
2671 Inst.getOperand(2).getImm(), ATReg, IDLoc, STI);
2690 unsigned ATReg = getATReg(IDLoc);
2691 if (!ATReg)
2695 LoOperand, ATReg, IDLoc, STI);
2713 unsigned ATReg = getATReg(IDLoc);
2714 if (!ATReg)
2723 LoOperand, ATReg, IDLoc, STI);
3102 unsigned ATReg = getATReg(IDLoc);
3103 if (!ATReg)
3106 TOut.emitRRI(Mips::ADDiu, ATReg, ZeroReg, -1, IDLoc, STI);
3109 TOut.emitRRI(Mips::BNE, RtReg, ATReg, BranchTarget, IDLoc, STI);
3110 TOut.emitRRI(Mips::ADDiu, ATReg, ZeroReg, 1, IDLoc, STI);
3111 TOut.emitRRI(Mips::DSLL32, ATReg, ATReg, 0x1f, IDLoc, STI);
3114 TOut.emitRRI(Mips::BNE, RtReg, ATReg, BranchTarget, IDLoc, STI);
3115 TOut.emitRI(Mips::LUi, ATReg, (uint16_t)0x8000, IDLoc, STI);
3119 TOut.emitRRI(Mips::TEQ, RsReg, ATReg, 0x6, IDLoc, STI);
3122 TOut.emitRRI(Mips::BNE, RsReg, ATReg, BranchTargetNoTraps, IDLoc, STI);
3144 unsigned ATReg = getATReg(IDLoc);
3145 if (!ATReg)
3150 TOut.emitRRI(Mips::ORi, ATReg, ThirdReg, 0x3, IDLoc, STI);
3151 TOut.emitRRI(Mips::XORi, ATReg, ATReg, 0x2, IDLoc, STI);
3152 TOut.emitRR(Mips::CTC1, Mips::RA, ATReg, IDLoc, STI);
3195 unsigned ATReg = getATReg(IDLoc);
3196 if (!ATReg)
3206 if (loadImmediate(OffsetValue, ATReg, Mips::NoRegister, !ABI.ArePtrs64bit(),
3217 TOut.emitAddu(ATReg, ATReg, SrcReg, ABI.ArePtrs64bit(), STI);
3220 unsigned FirstLbuDstReg = LoadedOffsetInAT ? DstReg : ATReg;
3221 unsigned SecondLbuDstReg = LoadedOffsetInAT ? ATReg : DstReg;
3222 unsigned LbuSrcReg = LoadedOffsetInAT ? ATReg : SrcReg;
3233 unsigned SllReg = LoadedOffsetInAT ? DstReg : ATReg;
3243 TOut.emitRRR(Mips::OR, DstReg, DstReg, ATReg, IDLoc, STI);
3268 unsigned ATReg = 0;
3275 ATReg = getATReg(IDLoc);
3276 if (!ATReg)
3282 if (loadImmediate(OffsetValue, ATReg, Mips::NoRegister, !ABI.ArePtrs64bit(),
3293 TOut.emitAddu(ATReg, ATReg, SrcReg, ABI.ArePtrs64bit(), STI);
3296 unsigned FinalSrcReg = LoadedOffsetInAT ? ATReg : SrcReg;
3325 unsigned ATReg = Mips::NoRegister;
3336 ATReg = getATReg(Inst.getLoc());
3337 if (!ATReg)
3340 DstReg = ATReg;
3385 unsigned ATReg = Mips::NoRegister;
3431 ATReg = getATReg(Inst.getLoc());
3432 if (!ATReg)
3435 TOut.emitRRR(Mips::SUBu, ATReg, Mips::ZERO, TReg, Inst.getLoc(), STI);
3436 TOut.emitRRR(FirstShift, ATReg, SReg, ATReg, Inst.getLoc(), STI);
3438 TOut.emitRRR(Mips::OR, DReg, DReg, ATReg, Inst.getLoc(), STI);
3450 unsigned ATReg = Mips::NoRegister;
3497 ATReg = getATReg(Inst.getLoc());
3498 if (!ATReg)
3501 TOut.emitRRI(FirstShift, ATReg, SReg, ImmValue, Inst.getLoc(), STI);
3503 TOut.emitRRR(Mips::OR, DReg, DReg, ATReg, Inst.getLoc(), STI);
3514 unsigned ATReg = Mips::NoRegister;
3560 ATReg = getATReg(Inst.getLoc());
3561 if (!ATReg)
3564 TOut.emitRRR(Mips::DSUBu, ATReg, Mips::ZERO, TReg, Inst.getLoc(), STI);
3565 TOut.emitRRR(FirstShift, ATReg, SReg, ATReg, Inst.getLoc(), STI);
3567 TOut.emitRRR(Mips::OR, DReg, DReg, ATReg, Inst.getLoc(), STI);
3579 unsigned ATReg = Mips::NoRegister;
3657 ATReg = getATReg(Inst.getLoc());
3658 if (!ATReg)
3661 TOut.emitRRI(FirstShift, ATReg, SReg, ImmValue % 32, Inst.getLoc(), STI);
3664 TOut.emitRRR(Mips::OR, DReg, DReg, ATReg, Inst.getLoc(), STI);