Lines Matching defs:Scale

51 static bool checkScale(unsigned Scale, StringRef &ErrMsg) {
52 if (Scale != 1 && Scale != 2 && Scale != 4 && Scale != 8) {
202 return -1; // The invalid Scale value will be caught later by checkScale
437 unsigned BaseReg = 0, IndexReg = 0, TmpReg = 0, Scale = 0;
473 unsigned getScale() const { return Scale; }
695 Scale = 0;
740 // We have negate operator for Scale: it's illegal
741 ErrMsg = "Scale can't be negative";
754 Scale = 0;
808 // Index Register - Scale * Register
814 // Get the scale and replace the 'Scale * Register' with '0'.
815 Scale = IC.popOperand();
816 if (checkScale(Scale, ErrMsg))
891 // Index Register - Register * Scale
895 Scale = TmpInt;
896 if (checkScale(Scale, ErrMsg))
898 // Get the scale and replace the 'Register * Scale' with '0'.
999 Scale = 0;
1156 unsigned Scale, bool NonAbsMem, SMLoc Start,
1304 unsigned Scale, bool Is64BitMode,
1389 return checkScale(Scale, ErrMsg);
1614 /*BaseReg=*/Basereg, /*IndexReg=*/0, /*Scale=*/1,
1623 /*BaseReg=*/Basereg, /*IndexReg=*/0, /*Scale=*/1,
1758 unsigned Scale, bool NonAbsMem,
1798 getPointerWidth(), SegReg, Disp, BaseReg, IndexReg, Scale, Start, End,
2658 unsigned Scale = SM.getScale();
2662 if (Scale == 0 && BaseReg != X86::ESP && BaseReg != X86::RSP &&
2667 // Scale was specified in which case it would be an error.
2668 if (Scale == 0 &&
2677 if (Scale != 0 &&
2682 if (Scale == 0)
2683 Scale = 1;
2693 CheckBaseRegAndIndexRegAndScale(BaseReg, IndexReg, Scale, is64BitMode(),
2699 return CreateMemForMSInlineAsm(RegNo, Disp, BaseReg, IndexReg, Scale,
2743 getPointerWidth(), RegNo, Disp, BaseReg, IndexReg, Scale, Start, End,
3044 unsigned BaseReg = 0, IndexReg = 0, Scale = 1;
3074 // We've parsed an unexpected Scale Value instead of an index
3081 Scale = 1;
3101 Scale = (unsigned)ScaleVal;
3104 Scale != 1)
3106 if (checkScale(Scale, ErrMsg))
3121 if (BaseReg == X86::DX && IndexReg == 0 && Scale == 1 && SegReg == 0 &&
3128 if (CheckBaseRegAndIndexRegAndScale(BaseReg, IndexReg, Scale, is64BitMode(),
3163 BaseReg, IndexReg, Scale, StartLoc,
3960 /*Scale=*/1, SMLoc{}, SMLoc{}, 0);