Lines Matching refs:Displacement
105 int64_t ApplyDisplacementBounds(int64_t Displacement) { in ApplyDisplacementBounds() argument
106 return std::max(std::min(MaxAllowedDisplacement, Displacement), in ApplyDisplacementBounds()
110 void CheckDisplacementBounds(int64_t Displacement) { in CheckDisplacementBounds() argument
111 assert(Displacement >= MinAllowedDisplacement && in CheckDisplacementBounds()
112 Displacement <= MaxAllowedDisplacement); in CheckDisplacementBounds()
252 int64_t Displacement,
435 int64_t Displacement = 0; in ComputeMemOperandAddress() local
437 Displacement -= OrigSPOffset; in ComputeMemOperandAddress()
439 Displacement -= OrigSPOffset * Op.getMemScale(); in ComputeMemOperandAddress()
441 assert(Displacement >= 0); in ComputeMemOperandAddress()
444 if (Displacement == 0) { in ComputeMemOperandAddress()
451 AddDisplacement(Op, Displacement, Ctx, &Residue); in ComputeMemOperandAddress()
466 X86AddressSanitizer::AddDisplacement(X86Operand &Op, int64_t Displacement, in AddDisplacement() argument
468 assert(Displacement >= 0); in AddDisplacement()
470 if (Displacement == 0 || in AddDisplacement()
472 *Residue = Displacement; in AddDisplacement()
482 Displacement += OrigDisplacement; in AddDisplacement()
484 int64_t NewDisplacement = ApplyDisplacementBounds(Displacement); in AddDisplacement()
487 *Residue = Displacement - NewDisplacement; in AddDisplacement()