Searched defs:expected_code (Results 1 - 8 of 8) sorted by relevance

/art/compiler/linker/mips/
H A Drelative_patcher_mips32r6_test.cc69 const uint8_t expected_code[] = { local
74 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
H A Drelative_patcher_mips_test.cc72 const uint8_t expected_code[] = { local
79 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
/art/compiler/linker/mips64/
H A Drelative_patcher_mips64_test.cc71 const uint8_t expected_code[] = { local
76 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
/art/compiler/linker/x86/
H A Drelative_patcher_x86_test.cc52 static const uint8_t expected_code[] = { local
55 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
101 static const uint8_t expected_code[] = { local
108 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
132 static const uint8_t expected_code[] = { local
141 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
164 static const uint8_t expected_code[] = { local
173 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
/art/compiler/linker/x86_64/
H A Drelative_patcher_x86_64_test.cc72 static const uint8_t expected_code[] = { local
75 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
121 static const uint8_t expected_code[] = { local
128 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
145 static const uint8_t expected_code[] = { local
152 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
169 static const uint8_t expected_code[] = { local
176 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
/art/compiler/linker/
H A Drelative_patcher_test.h190 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { argument
200 CHECK_EQ(compiled_methods_[idx]->GetQuickCode().size(), expected_code.size());
206 CHECK_LE(offset + expected_code.size(), output_.size());
207 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size());
208 if (linked_code == expected_code) {
212 DumpDiff(expected_code, linked_code);
216 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, argument
223 for (size_t i = 0; i != expected_code.size(); ++i) {
224 expected_hex << " " << digits[expected_code[i] >> 4] << digits[expected_code[
[all...]
/art/compiler/linker/arm/
H A Drelative_patcher_thumb2_test.cc202 const std::vector<uint8_t> expected_code = CompileMethodCallThunk(); local
203 if (output_.size() < thunk_offset + expected_code.size()) {
205 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size());
208 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size());
209 if (linked_code == ArrayRef<const uint8_t>(expected_code)) {
213 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code);
338 const uint8_t expected_code[] = { local
345 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
355 static const uint8_t expected_code[] local
399 auto expected_code = GenNopsAndBl(0u, kBlMinus256 | ((diff >> 1) & 0xffu)); local
429 auto expected_code = GenNopsAndBl(3u, kBlPlus0 | ((diff >> 1) & 0xffu)); local
452 auto expected_code = GenNopsAndBl(3u, kBlPlusMax); local
474 auto expected_code = GenNopsAndBl(2u, kBlMinusMax); local
507 auto expected_code = GenNopsAndBl(2u, 0xf3ffd700 | ((diff >> 1) & 0xffu)); local
536 auto expected_code = GenNopsAndBl(3u, kBlPlus0 | ((diff >> 1) & 0xffu)); local
616 const std::vector<uint8_t> expected_code = RawCode({bne, ldr}); local
721 const std::vector<uint8_t> expected_code = RawCode({bne, ldr}); local
1008 const std::vector<uint8_t> expected_code = RawCode({bne, ldr(base_reg)}); local
1091 const std::vector<uint8_t> expected_code = RawCode({ldr, bne}); local
1151 const std::vector<uint8_t> expected_code = RawCode({ldr, bne}); local
1201 std::vector<uint8_t> expected_code; local
[all...]
/art/compiler/linker/arm64/
H A Drelative_patcher_arm64_test.cc181 const std::vector<uint8_t> expected_code = CompileMethodCallThunk(); local
182 if (output_.size() < thunk_offset + expected_code.size()) {
184 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size());
187 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size());
188 if (linked_code == ArrayRef<const uint8_t>(expected_code)) {
192 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code);
270 auto expected_code = GenNopsAndAdrpLdr(num_nops, method1_offset, target_offset); local
271 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
294 auto expected_code local
337 auto expected_code = GenNopsAndAdrpAndUse(num_nops, method1_offset, target_offset, use_insn); local
359 auto expected_code = GenNopsAndAdrpAndUse(num_nops, method1_offset, target_offset, use_insn); local
540 const std::vector<uint8_t> expected_code = RawCode({kBlPlus0}); local
580 auto expected_code = GenNopsAndBl(0u, kBlPlus0 | ((diff >> 2) & 0x03ffffffu)); local
611 auto expected_code = GenNopsAndBl(1u, kBlPlus0 | (diff >> 2)); local
640 auto expected_code = GenNopsAndBl(1u, kBlPlusMax); local
664 auto expected_code = GenNopsAndBl(0u, kBlMinusMax); local
699 auto expected_code = GenNopsAndBl(0u, kBlPlus0 | (diff >> 2)); local
729 auto expected_code = GenNopsAndBl(1u, kBlPlus0 | (diff >> 2)); local
942 const std::vector<uint8_t> expected_code = RawCode({cbnz, ldr}); local
1186 const std::vector<uint8_t> expected_code = RawCode({cbnz, ldr(base_reg)}); local
1264 const std::vector<uint8_t> expected_code = RawCode({ldr, cbnz}); local
[all...]

Completed in 51 milliseconds