Lines Matching defs:BaseReg
190 unsigned BaseReg;
254 return Mem.BaseReg;
507 Res->Mem.BaseReg = 0;
518 unsigned BaseReg, unsigned IndexReg,
523 assert((SegReg || BaseReg || IndexReg) && "Invalid memory operand!");
531 Res->Mem.BaseReg = BaseReg;
544 unsigned basereg = is64BitMode() ? X86::RSI : X86::ESI;
550 Op.Mem.BaseReg == basereg && Op.Mem.IndexReg == 0);
554 unsigned basereg = is64BitMode() ? X86::RDI : X86::EDI;
560 Op.Mem.BaseReg == basereg && Op.Mem.IndexReg == 0;
710 unsigned BaseReg, IndexReg, Scale;
720 State(IBES_START), BaseReg(0), IndexReg(0), Scale(1), Disp(0),
723 unsigned getBaseReg() { return BaseReg; }
743 // If we already have a BaseReg, then assume this is the IndexReg with a
745 if (!BaseReg) {
746 BaseReg = TmpReg;
748 assert (!IndexReg && "BaseReg/IndexReg already set!");
776 // If we already have a BaseReg, then assume this is the IndexReg with a
778 if (!BaseReg) {
779 BaseReg = TmpReg;
781 assert (!IndexReg && "BaseReg/IndexReg already set!");
881 // If we already have a BaseReg, then assume this is the IndexReg with a
883 if (!BaseReg) {
884 BaseReg = TmpReg;
886 assert (!IndexReg && "BaseReg/IndexReg already set!");
926 // Parse [ BaseReg + Scale*IndexReg + Disp ].
998 int BaseReg = SM.getBaseReg();
1002 if (!BaseReg && !IndexReg) {
1010 return X86Operand::CreateMem(SegReg, Disp, BaseReg, IndexReg, Scale,
1075 return X86Operand::CreateMem(/*SegReg*/0, Disp, /*BaseReg*/1, /*IndexReg*/0,
1286 /// ParseMemOperand: segment: disp(basereg, indexreg, scale). The '%ds:' prefix
1342 unsigned BaseReg = 0, IndexReg = 0, Scale = 1;
1347 if (ParseRegister(BaseReg, StartLoc, EndLoc)) return 0;
1348 if (BaseReg == X86::EIZ || BaseReg == X86::RIZ) {
1422 if (BaseReg != 0 && IndexReg != 0) {
1423 if (X86MCRegisterClasses[X86::GR64RegClassID].contains(BaseReg) &&
1430 if (X86MCRegisterClasses[X86::GR32RegClassID].contains(BaseReg) &&
1439 return X86Operand::CreateMem(SegReg, Disp, BaseReg, IndexReg, Scale,
1583 Op.Mem.BaseReg == MatchRegisterName("dx") && Op.Mem.IndexReg == 0) {
1585 Operands.back() = X86Operand::CreateReg(Op.Mem.BaseReg, Loc, Loc);
1596 Op.Mem.BaseReg == MatchRegisterName("dx") && Op.Mem.IndexReg == 0) {
1598 Operands.begin()[1] = X86Operand::CreateReg(Op.Mem.BaseReg, Loc, Loc);