Lines Matching refs:delta

251 static bool isValidAdrOffset(int32_t delta) { return isInt<21>(delta); }  in isValidAdrOffset()  argument
253 static void writeAdr(void *loc, uint32_t dest, int32_t delta) { in writeAdr() argument
254 assert(isValidAdrOffset(delta)); in writeAdr()
256 uint32_t immHi = (delta & 0x001ffffc) << 3; in writeAdr()
257 uint32_t immLo = (delta & 0x00000003) << 29; in writeAdr()
371 uint32_t ins2 = read32le(buf + hint.offset0 + hint.delta[0]); in applyAdrpAdd()
382 Optional<PerformedReloc> rel2 = findReloc(hint.offset0 + hint.delta[0]); in applyAdrpAdd()
387 int64_t delta = rel1->referentVA - rel1->rel.offset - isec->getVA(); in applyAdrpAdd() local
388 if (!isValidAdrOffset(delta)) in applyAdrpAdd()
391 writeAdr(buf + hint.offset0, add.destRegister, delta); in applyAdrpAdd()
392 writeNop(buf + hint.offset0 + hint.delta[0]); in applyAdrpAdd()
405 uint32_t ins2 = read32le(buf + hint.offset0 + hint.delta[0]); in applyAdrpAdrp()
413 Optional<PerformedReloc> rel2 = findReloc(hint.offset0 + hint.delta[0]); in applyAdrpAdrp()
419 writeNop(buf + hint.offset0 + hint.delta[0]); in applyAdrpAdrp()
433 uint32_t ins2 = read32le(buf + hint.offset0 + hint.delta[0]); in applyAdrpLdr()
444 Optional<PerformedReloc> rel2 = findReloc(hint.offset0 + hint.delta[0]); in applyAdrpLdr()
454 writeLiteralLdr(buf + hint.offset0 + hint.delta[0], ldr); in applyAdrpLdr()
461 uint32_t ins2 = read32le(buf + hint.offset0 + hint.delta[0]); in applyAdrpLdrGot()
480 uint32_t ins3 = read32le(buf + hint.offset0 + hint.delta[1]); in applyAdrpLdrGotLdr()
484 uint32_t ins2 = read32le(buf + hint.offset0 + hint.delta[0]); in applyAdrpLdrGotLdr()
489 Optional<PerformedReloc> rel2 = findReloc(hint.offset0 + hint.delta[0]); in applyAdrpLdrGotLdr()
507 uint64_t rel3VA = hint.offset0 + hint.delta[1] + isec->getVA(); in applyAdrpLdrGotLdr()
512 writeNop(buf + hint.offset0 + hint.delta[0]); in applyAdrpLdrGotLdr()
513 writeLiteralLdr(buf + hint.offset0 + hint.delta[1], literalLdr); in applyAdrpLdrGotLdr()
524 writeNop(buf + hint.offset0 + hint.delta[0]); in applyAdrpLdrGotLdr()
536 writeNop(buf + hint.offset0 + hint.delta[0]); in applyAdrpLdrGotLdr()
537 writeImmediateLdr(buf + hint.offset0 + hint.delta[1], immediateLdr); in applyAdrpLdrGotLdr()
560 writeLiteralLdr(buf + hint.offset0 + hint.delta[0], literalLdr); in applyAdrpLdrGotLdr()