Lines Matching refs:Val
45 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
379 void ARM::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
399 write32le(Loc, Val); in relocateOne()
405 checkInt(Loc, Val, 31, Type); in relocateOne()
406 write32le(Loc, (read32le(Loc) & 0x80000000) | (Val & ~0x80000000)); in relocateOne()
411 if (Val & 1) { in relocateOne()
414 checkInt(Loc, Val, 26, Type); in relocateOne()
416 ((Val & 2) << 23) | // H in relocateOne()
417 ((Val >> 2) & 0x00ffffff)); // imm24 in relocateOne()
429 checkInt(Loc, Val, 26, Type); in relocateOne()
430 write32le(Loc, (read32le(Loc) & ~0x00ffffff) | ((Val >> 2) & 0x00ffffff)); in relocateOne()
433 checkInt(Loc, Val, 12, Type); in relocateOne()
434 write16le(Loc, (read32le(Loc) & 0xf800) | ((Val >> 1) & 0x07ff)); in relocateOne()
438 checkInt(Loc, Val, 21, Type); in relocateOne()
441 ((Val >> 10) & 0x0400) | // S in relocateOne()
442 ((Val >> 12) & 0x003f)); // imm6 in relocateOne()
445 ((Val >> 8) & 0x0800) | // J2 in relocateOne()
446 ((Val >> 5) & 0x2000) | // J1 in relocateOne()
447 ((Val >> 1) & 0x07ff)); // imm11 in relocateOne()
452 if ((Val & 1) == 0) { in relocateOne()
455 Val = alignTo(Val, 4); in relocateOne()
458 write16le(Loc + 2, (read16le(Loc + 2) & ~0x1000) | (Val & 1) << 12); in relocateOne()
462 checkInt(Loc, Val, 23, Type); in relocateOne()
465 ((Val >> 12) & 0x07ff)); // imm11 in relocateOne()
469 ((Val >> 1) & 0x07ff)); // imm11 in relocateOne()
476 checkInt(Loc, Val, 25, Type); in relocateOne()
479 ((Val >> 14) & 0x0400) | // S in relocateOne()
480 ((Val >> 12) & 0x03ff)); // imm10 in relocateOne()
483 (((~(Val >> 10)) ^ (Val >> 11)) & 0x2000) | // J1 in relocateOne()
484 (((~(Val >> 11)) ^ (Val >> 13)) & 0x0800) | // J2 in relocateOne()
485 ((Val >> 1) & 0x07ff)); // imm11 in relocateOne()
489 write32le(Loc, (read32le(Loc) & ~0x000f0fff) | ((Val & 0xf000) << 4) | in relocateOne()
490 (Val & 0x0fff)); in relocateOne()
495 (((Val >> 16) & 0xf000) << 4) | ((Val >> 16) & 0xfff)); in relocateOne()
502 ((Val >> 17) & 0x0400) | // i in relocateOne()
503 ((Val >> 28) & 0x000f)); // imm4 in relocateOne()
506 ((Val >> 12) & 0x7000) | // imm3 in relocateOne()
507 ((Val >> 16) & 0x00ff)); // imm8 in relocateOne()
514 ((Val >> 1) & 0x0400) | // i in relocateOne()
515 ((Val >> 12) & 0x000f)); // imm4 in relocateOne()
518 ((Val << 4) & 0x7000) | // imm3 in relocateOne()
519 (Val & 0x00ff)); // imm8 in relocateOne()
591 uint64_t Val = read32le(Buf) & 0x000f0fff; in getImplicitAddend() local
592 return SignExtend64<16>(((Val & 0x000f0000) >> 4) | (Val & 0x00fff)); in getImplicitAddend()