Lines Matching refs:displacement

335                                                       int32_t displacement) {  in setDisplacementInBranch26()  argument
336 assert((displacement <= 134217727) && (displacement > (-134217728)) && in setDisplacementInBranch26()
338 return (instr & 0xFC000000) | ((uint32_t)(displacement >> 2) & 0x03FFFFFF); in setDisplacementInBranch26()
342 int64_t displacement) { in setDisplacementInADRP() argument
343 assert((displacement <= 0x100000000LL) && (displacement > (-0x100000000LL)) && in setDisplacementInADRP()
347 uint32_t immhi = (displacement >> 9) & (0x00FFFFE0); in setDisplacementInADRP()
348 uint32_t immlo = (displacement << 17) & (0x60000000); in setDisplacementInADRP()
594 int32_t displacement; in applyFixupFinal() local
600 displacement = (targetAddress - fixupAddress) + ref.addend(); in applyFixupFinal()
601 *loc32 = setDisplacementInBranch26(*loc32, displacement); in applyFixupFinal()
606 displacement = in applyFixupFinal()
608 *loc32 = setDisplacementInADRP(*loc32, displacement); in applyFixupFinal()
613 displacement = (targetAddress + ref.addend()) & 0x00000FFF; in applyFixupFinal()
614 *loc32 = setImm12(*loc32, displacement); in applyFixupFinal()
617 displacement = (targetAddress + ref.addend()) & 0x00000FFF; in applyFixupFinal()
618 assert(((displacement & 0x1) == 0) && in applyFixupFinal()
620 *loc32 = setImm12(*loc32, displacement >> 1); in applyFixupFinal()
623 displacement = (targetAddress + ref.addend()) & 0x00000FFF; in applyFixupFinal()
624 assert(((displacement & 0x3) == 0) && in applyFixupFinal()
626 *loc32 = setImm12(*loc32, displacement >> 2); in applyFixupFinal()
629 displacement = (targetAddress + ref.addend()) & 0x00000FFF; in applyFixupFinal()
630 assert(((displacement & 0x7) == 0) && in applyFixupFinal()
632 *loc32 = setImm12(*loc32, displacement >> 3); in applyFixupFinal()
635 displacement = (targetAddress + ref.addend()) & 0x00000FFF; in applyFixupFinal()
636 assert(((displacement & 0xF) == 0) && in applyFixupFinal()
638 *loc32 = setImm12(*loc32, displacement >> 4); in applyFixupFinal()
644 displacement = (targetAddress + ref.addend()) & 0x00000FFF; in applyFixupFinal()
646 instruction = setImm12(value32, displacement); in applyFixupFinal()