Lines Matching refs:Displacement
107 int64_t ApplyDisplacementBounds(int64_t Displacement) {
108 return std::max(std::min(MaxAllowedDisplacement, Displacement),
112 void CheckDisplacementBounds(int64_t Displacement) {
113 assert(Displacement >= MinAllowedDisplacement &&
114 Displacement <= MaxAllowedDisplacement);
251 // Creates new memory operand with Displacement added to an original
252 // displacement. Residue will contain a residue which could happen when the
253 // total displacement exceeds 32-bit limitation.
255 int64_t Displacement,
438 int64_t Displacement = 0;
440 Displacement -= OrigSPOffset;
442 Displacement -= OrigSPOffset * Op.getMemScale();
444 assert(Displacement >= 0);
447 if (Displacement == 0) {
454 AddDisplacement(Op, Displacement, Ctx, &Residue);
469 X86AddressSanitizer::AddDisplacement(X86Operand &Op, int64_t Displacement,
471 assert(Displacement >= 0);
473 if (Displacement == 0 ||
475 *Residue = Displacement;
485 Displacement += OrigDisplacement;
487 int64_t NewDisplacement = ApplyDisplacementBounds(Displacement);
490 *Residue = Displacement - NewDisplacement;