Home
last modified time | relevance | path

Searched refs:diff_before (Results 1 – 4 of 4) sorted by relevance

/art/compiler/linker/x86/
Drelative_patcher_x86_test.cc77 uint32_t diff_before = method1_offset - (method2_offset + kCallCode.size() /* PC adjustment */); in TEST_F() local
80 static_cast<uint8_t>(diff_before), static_cast<uint8_t>(diff_before >> 8), in TEST_F()
81 static_cast<uint8_t>(diff_before >> 16), static_cast<uint8_t>(diff_before >> 24) in TEST_F()
/art/compiler/linker/x86_64/
Drelative_patcher_x86_64_test.cc87 uint32_t diff_before = method1_offset - (method2_offset + kCallCode.size() /* PC adjustment */); in TEST_F() local
90 static_cast<uint8_t>(diff_before), static_cast<uint8_t>(diff_before >> 8), in TEST_F()
91 static_cast<uint8_t>(diff_before >> 16), static_cast<uint8_t>(diff_before >> 24) in TEST_F()
/art/compiler/linker/arm/
Drelative_patcher_thumb2_test.cc213 uint32_t diff_before = method1_offset - (method2_offset + 4u /* PC adjustment */); in TEST_F() local
214 ASSERT_EQ(diff_before & 1u, 0u); in TEST_F()
215 ASSERT_GE(diff_before, -1u << 9); // Simple encoding, -256 <= (diff >> 1) < 0. in TEST_F()
216 auto method2_expected_code = GenNopsAndBl(0u, kBlMinus256 | ((diff_before >> 1) & 0xffu)); in TEST_F()
/art/compiler/linker/arm64/
Drelative_patcher_arm64_test.cc366 uint32_t diff_before = method1_offset - method2_offset; in TEST_F() local
367 ASSERT_EQ(diff_before & 3u, 0u); in TEST_F()
368 ASSERT_GE(diff_before, -1u << 27); in TEST_F()
369 auto method2_expected_code = GenNopsAndBl(0u, kBlPlus0 | ((diff_before >> 2) & 0x03ffffffu)); in TEST_F()