• Home
  • Raw
  • Download

Lines Matching refs:diff

130     uint32_t diff = target_offset - bne_offset - kPcAdjustment;  in BneWWithOffset()  local
131 DCHECK_ALIGNED(diff, 2u); in BneWWithOffset()
132 if ((diff >> 20) != 0 && (diff >> 20) != 0xfffu) { in BneWWithOffset()
133 LOG(ERROR) << "Target out of range: " << diff; in BneWWithOffset()
136 return kBneWPlus0 | ((diff >> 1) & 0x7ffu) // imm11 in BneWWithOffset()
137 | (((diff >> 12) & 0x3fu) << 16) // imm6 in BneWWithOffset()
138 | (((diff >> 18) & 1) << 13) // J1 in BneWWithOffset()
139 | (((diff >> 19) & 1) << 11) // J2 in BneWWithOffset()
140 | (((diff >> 20) & 1) << 26); // S in BneWWithOffset()
383 uint32_t diff = target_offset - pc_base_offset; in CheckPcRelativePatch() local
385 uint32_t diffw = diff & 0xffffu; in CheckPcRelativePatch()
386 uint32_t difft = diff >> 16; in CheckPcRelativePatch()
455 uint32_t diff = kTrampolineOffset - (method1_offset + 4u); in TEST_F() local
456 ASSERT_EQ(diff & 1u, 0u); in TEST_F()
457 ASSERT_GE(diff, -1u << 9); // Simple encoding, -256 <= (diff >> 1) < 0 (checked as unsigned). in TEST_F()
458 auto expected_code = GenNopsAndBl(0u, kBlMinus256 | ((diff >> 1) & 0xffu)); in TEST_F()
488 uint32_t diff = in TEST_F() local
490 ASSERT_TRUE(IsAligned<2u>(diff)); in TEST_F()
491 ASSERT_LT(diff >> 1, 1u << 8); // Simple encoding, (diff >> 1) fits into 8 bits. in TEST_F()
492 auto expected_code = GenNopsAndBl(3u, kBlPlus0 | ((diff >> 1) & 0xffu)); in TEST_F()
583 uint32_t diff = thunk_offset - (method1_offset + bl_offset_in_method1 + 4u /* PC adjustment */); in TEST_F() local
584 ASSERT_TRUE(IsAligned<2u>(diff)); in TEST_F()
585 ASSERT_GE(diff, 16 * MB - (1u << 22)); // Simple encoding, unknown bits fit into imm10:imm11:0. in TEST_F()
587 GenNopsAndBl(2u, 0xf000d000 | ((diff >> 1) & 0x7ffu) | (((diff >> 12) & 0x3ffu) << 16)); in TEST_F()
616 uint32_t diff = in TEST_F() local
618 ASSERT_TRUE(IsAligned<2u>(diff)); in TEST_F()
619 ASSERT_LT(diff >> 1, 1u << 8); // Simple encoding, (diff >> 1) fits into 8 bits. in TEST_F()
620 auto expected_code = GenNopsAndBl(3u, kBlPlus0 | ((diff >> 1) & 0xffu)); in TEST_F()
677 uint32_t diff = thunk_offset - method_offset - kPcAdjustment; in TEST_F() local
678 ASSERT_TRUE(IsAligned<2u>(diff)); in TEST_F()
679 ASSERT_LT(diff >> 1, 1u << 8); // Simple encoding, (diff >> 1) fits into 8 bits. in TEST_F()
680 auto expected_code = GenNopsAndBl(0u, kBlPlus0 | ((diff >> 1) & 0xffu)); in TEST_F()