/arkcompiler/runtime_core/libpandabase/tests/ |
D | bit_vector_test.cpp | 53 ASSERT_EQ(vector.capacity(), 0U); 70 ASSERT_EQ(std::memcmp(vector.GetDataSpan().data(), &value, 1), 0); 73 ASSERT_EQ(cvector[0], vector[0]); 76 ASSERT_EQ(cvector.begin(), vector.begin()); 77 ASSERT_EQ(cvector.end(), vector.end()); 81 ASSERT_EQ(vector.PopCount(), 0U); 83 ASSERT_EQ(vector.PopCount(), 13U); 86 ASSERT_EQ(vector.PopCount(i), i - 2); 88 ASSERT_EQ(vector.PopCount(i), 0U); 91 ASSERT_EQ(vector.GetHighestBitSet(), 14); [all …]
|
D | bit_utils_test.cpp | 26 ASSERT_EQ(ReverseBytes(0x33221100U), 0x00112233U); in TEST() 27 ASSERT_EQ(ReverseBytes(0U), 0); in TEST() 28 ASSERT_EQ(ReverseBytes(0xffffffffU), 0xffffffffU); in TEST() 33 ASSERT_EQ(ReverseBytes(UINT64_C(0x7766554433221100)), UINT64_C(0x0011223344556677)); in TEST() 34 ASSERT_EQ(ReverseBytes(UINT64_C(0)), 0); in TEST() 35 ASSERT_EQ(ReverseBytes(UINT64_C(0xffffffffffffffff)), UINT64_C(0xffffffffffffffff)); in TEST() 40 ASSERT_EQ(ReverseBits(0x33221100U), 0x008844ccU); in TEST() 41 ASSERT_EQ(ReverseBits(0U), 0); in TEST() 42 ASSERT_EQ(ReverseBits(0xffffffffU), 0xffffffffU); in TEST() 47 ASSERT_EQ(ReverseBits(UINT64_C(0x7766554433221100)), UINT64_C(0x008844cc22aa66ee)); in TEST() [all …]
|
D | ring_buffer_test.cpp | 27 ASSERT_EQ(buffer.size(), 0U); in TEST() 28 ASSERT_EQ(buffer.capacity(), DEFAULT_BUFFER_SIZE); in TEST() 29 ASSERT_EQ(buffer.begin(), buffer.end()); in TEST() 30 ASSERT_EQ(buffer.cbegin(), buffer.cend()); in TEST() 32 ASSERT_EQ(buffer.capacity(), DEFAULT_BUFFER_SIZE); in TEST() 42 ASSERT_EQ(buffer.size(), i + 1); in TEST() 43 ASSERT_EQ(buffer.front(), 0U); in TEST() 44 ASSERT_EQ(buffer.back(), i); in TEST() 47 ASSERT_EQ(buffer.size(), DEFAULT_BUFFER_SIZE); in TEST() 54 ASSERT_EQ(element, i++); in TEST() [all …]
|
D | small_vector_test.cpp | 52 ASSERT_EQ(vector.size(), 0); in TestVectorGrow() 53 ASSERT_EQ(vector.capacity(), 4); in TestVectorGrow() 56 ASSERT_EQ(vector.size(), 1); in TestVectorGrow() 57 ASSERT_EQ(vector.capacity(), 4); in TestVectorGrow() 63 ASSERT_EQ(vector.size(), 4); in TestVectorGrow() 64 ASSERT_EQ(vector.capacity(), 4); in TestVectorGrow() 68 ASSERT_EQ(vector.size(), 5); in TestVectorGrow() 75 ASSERT_EQ(vector.size(), 10); in TestVectorGrow() 78 ASSERT_EQ(vector[i], values[i]); in TestVectorGrow() 98 ASSERT_EQ(vector.size(), 0); in TestVectorIteration() [all …]
|
D | bit_table_test.cpp | 73 ASSERT_EQ(table.GetRowsCount(), 0); in TEST_F() 74 ASSERT_EQ(table.begin(), table.end()); in TEST_F() 92 ASSERT_EQ(table.GetRowsCount(), 1); in TEST_F() 94 ASSERT_EQ(table.GetRow(0).Get(0), Builder::NO_VALUE); in TEST_F() 118 ASSERT_EQ(table.GetRowsCount(), 4); in TEST_F() 119 ASSERT_EQ(table.GetRow(0).Get(0), 9); in TEST_F() 121 ASSERT_EQ(table.GetRow(2).Get(0), 19); in TEST_F() 122 ASSERT_EQ(table.GetRow(3).Get(0), 29); in TEST_F() 151 ASSERT_EQ(table.GetRowsCount(), 5); in TEST_F() 156 ASSERT_EQ(row.Get(i), values[row_index][i]); in TEST_F() [all …]
|
D | type_converter_tests.cpp | 41 … ASSERT_EQ(TimeConverter(left_part_time), ValueUnit(static_cast<double>(left_part_time), "ns")); 42 … ASSERT_EQ(TimeConverter(right_part_time), ValueUnit(static_cast<double>(right_part_time), "ns")); 46 ASSERT_EQ(TimeConverter(nanos), ValueUnit(expected, "us")); 47 ASSERT_EQ(TimeConverter(nanos * 1e3), ValueUnit(expected, "ms")); 48 ASSERT_EQ(TimeConverter(nanos * 1e6), ValueUnit(expected, "s")); 49 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60), ValueUnit(expected, "m")); 50 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60 * 60), ValueUnit(expected, "h")); 51 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60 * 60 * 24), ValueUnit(expected, "day")); 57 ASSERT_EQ(TimeConverter(11'119'272), ValueUnit(11.119, "ms")); 58 ASSERT_EQ(TimeConverter(11'119'472), ValueUnit(11.119, "ms")); [all …]
|
D | string_helpers_test.cpp | 48 ASSERT_EQ(EINVAL, errno); in TEST() 51 ASSERT_EQ(EINVAL, errno); in TEST() 54 ASSERT_EQ(123, i); in TEST() 55 ASSERT_EQ(0, errno); in TEST() 60 ASSERT_EQ(-123, i); in TEST() 67 ASSERT_EQ(1234, s); in TEST() 71 ASSERT_EQ(12, i); in TEST() 74 ASSERT_EQ(ERANGE, errno); in TEST() 77 ASSERT_EQ(ERANGE, errno); in TEST() 81 ASSERT_EQ(EINVAL, errno); in TEST() [all …]
|
D | alloc_tracker_test.cpp | 61 ASSERT_EQ(0, hdr.num_items); in TEST() 62 ASSERT_EQ(0, hdr.num_stacktraces); in TEST() 76 ASSERT_EQ(1, hdr.num_items); in TEST() 77 ASSERT_EQ(1, hdr.num_stacktraces); in TEST() 85 ASSERT_EQ(DetailAllocTracker::ALLOC_TAG, info.tag); in TEST() 86 ASSERT_EQ(0, info.id); in TEST() 87 ASSERT_EQ(20, info.size); in TEST() 88 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), info.space); in TEST() 89 ASSERT_EQ(0, info.stacktrace_id); in TEST() 104 ASSERT_EQ(2, hdr.num_items); in TEST() [all …]
|
D | arch_test.cpp | 25 ASSERT_EQ(GetCallerRegsMask(Arch::AARCH32, false), ArchTraits<Arch::AARCH32>::CALLER_REG_MASK); 26 ASSERT_EQ(GetCallerRegsMask(Arch::AARCH64, false), ArchTraits<Arch::AARCH64>::CALLER_REG_MASK); 27 ASSERT_EQ(GetCallerRegsMask(Arch::X86, false), ArchTraits<Arch::X86>::CALLER_REG_MASK); 28 ASSERT_EQ(GetCallerRegsMask(Arch::X86_64, false), ArchTraits<Arch::X86_64>::CALLER_REG_MASK); 33 ASSERT_EQ(GetCalleeRegsMask(Arch::AARCH32, false), ArchTraits<Arch::AARCH32>::CALLEE_REG_MASK); 34 ASSERT_EQ(GetCalleeRegsMask(Arch::AARCH64, false), ArchTraits<Arch::AARCH64>::CALLEE_REG_MASK); 35 ASSERT_EQ(GetCalleeRegsMask(Arch::X86, false), ArchTraits<Arch::X86>::CALLEE_REG_MASK); 36 ASSERT_EQ(GetCalleeRegsMask(Arch::X86_64, false), ArchTraits<Arch::X86_64>::CALLEE_REG_MASK); 41 ASSERT_EQ(GetFirstCalleeReg(Arch::X86_64, true), 1U); 42 ASSERT_EQ(GetLastCalleeReg(Arch::X86_64, true), 0U);
|
D | base_mem_stats_test.cpp | 49 ASSERT_EQ(sum, stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); 50 ASSERT_EQ(N, stats.GetFreed(SpaceType::SPACE_TYPE_CODE)); 51 ASSERT_EQ(sum - N, stats.GetFootprint(SpaceType::SPACE_TYPE_CODE)); 68 ASSERT_EQ(size1 + size2, stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); 69 ASSERT_EQ(0U, stats.GetFreed(SpaceType::SPACE_TYPE_CODE)); 70 ASSERT_EQ(size1 + size2, stats.GetFootprint(SpaceType::SPACE_TYPE_CODE)); 74 ASSERT_EQ(sizeof(buff1) + sizeof(buff2), stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); 75 ASSERT_EQ(sizeof(buff2), stats.GetFreed(SpaceType::SPACE_TYPE_CODE)); 76 ASSERT_EQ(sizeof(buff1), stats.GetFootprint(SpaceType::SPACE_TYPE_CODE)); 83 ASSERT_EQ(stats.GetAllocated(SpaceType::SPACE_TYPE_CODE), 1U); [all …]
|
D | arena_allocator_test.cpp | 97 …ASSERT_EQ(reinterpret_cast<size_t>(arr[i]) & mask, 0U) << "value of i: " << i << ", align: " << al… in AllocateWithAlignment() 98 … ASSERT_EQ(*arr[i], rand() % MAX_VALUE<T>()) << "value of i: " << i << ", align: " << align; in AllocateWithAlignment() 127 …ASSERT_EQ(reinterpret_cast<size_t>(arr[i]) & mask, 0U) << "value of i: " << i << ", align: " << al… in AllocateWithDiffAlignment() 128 ASSERT_EQ(*arr[i], random_value % MAX_VALUE<T>()) << "value of i: " << i; in AllocateWithDiffAlignment() 196 ASSERT_EQ(tmp = aa.Alloc(DEFAULT_ARENA_SIZE + maxAlignDrift + 1), nullptr); 211 ASSERT_EQ(SIZE, vec.size()); 213 ASSERT_EQ(SIZE, vec.size()); 216 ASSERT_EQ(i * SMALL_MAGIC_CONSTANT, vec[i]) << "value of i: " << i; 236 ASSERT_EQ(SIZE, vec.size()); 240 … ASSERT_EQ(vec[i].getValue(), i * MAGIC_CONSTANT_1 + MAGIC_CONSTANT_2) << "value of i: " << i; [all …]
|
D | regmask_test.cpp | 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), static_cast<uint32_t>(Ctz(base.to_ulong()))); in CompareWithBitset() 29 …ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong()… in CompareWithBitset() 31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset() 32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset() 33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset() 35 ASSERT_EQ(mask.Test(i), base.test(i)); in CompareWithBitset() 36 ASSERT_EQ(mask[i], base[i]); in CompareWithBitset() 63 ASSERT_EQ(mask.GetDistanceFromTail(bit), bits_before); in TestDistance() 64 ASSERT_EQ(mask.GetDistanceFromHead(bit), bits_after); in TestDistance() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/tests/ |
D | assembler_x64_test.cpp | 144 ASSERT_EQ(value, 0x55U); in HWTEST_F_L0() 147 ASSERT_EQ(value, 0x6AU); in HWTEST_F_L0() 149 ASSERT_EQ(value, 0x00U); in HWTEST_F_L0() 152 ASSERT_EQ(value, 0x5DU); in HWTEST_F_L0() 156 ASSERT_EQ(value, 0x48U); in HWTEST_F_L0() 158 ASSERT_EQ(value, 0x89U); in HWTEST_F_L0() 160 ASSERT_EQ(value, 0xCBU); in HWTEST_F_L0() 163 ASSERT_EQ(value, 0x48U); in HWTEST_F_L0() 165 ASSERT_EQ(value, 0x8BU); in HWTEST_F_L0() 167 ASSERT_EQ(value, 0x5CU); in HWTEST_F_L0() [all …]
|
/arkcompiler/runtime_core/assembler/tests/ |
D | lexer_test.cpp | 30 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 31 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 32 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST() 33 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST() 34 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 42 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 43 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 44 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 52 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 53 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST() [all …]
|
D | parser_test.cpp | 35 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::MOV); in TEST() 36 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 1) << "1 expected"; in TEST() 37 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[1], 2) << "2 expected"; in TEST() 38 ASSERT_EQ(p.ShowError().err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 52 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].label, "label") << "label expected"; in TEST() 53 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].set_label, true) << "true expected"; in TEST() 54 …ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::INVALID) << "NONE expect… in TEST() 55 ASSERT_EQ(p.ShowError().err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 66 … ASSERT_EQ(p.ShowError().err, Error::ErrorType::ERR_BAD_LABEL_EXT) << "ERR_BAD_LABEL_EXT expected"; in TEST() 77 …ASSERT_EQ(p.ShowError().err, Error::ErrorType::ERR_BAD_OPERATION_NAME) << "ERR_BAD_OPERATION_NAME … in TEST() [all …]
|
D | emitter_test.cpp | 67 ASSERT_EQ(p.ShowError().err, Error::ErrorType::ERR_NONE); in TEST() 81 ASSERT_EQ(cda.GetSuperClassId().GetOffset(), 0U); in TEST() 82 ASSERT_EQ(cda.GetAccessFlags(), ACC_PUBLIC); in TEST() 83 ASSERT_EQ(cda.GetFieldsNumber(), 0U); in TEST() 84 ASSERT_EQ(cda.GetMethodsNumber(), 1U); in TEST() 85 ASSERT_EQ(cda.GetIfacesNumber(), 0U); in TEST() 97 ASSERT_EQ(mda.GetClassId(), class_id); in TEST() 98 …ASSERT_EQ(utf::CompareMUtf8ToMUtf8(pf->GetStringData(mda.GetNameId()).data, utf::CStringAsMutf8("m… in TEST() 102 ASSERT_EQ(pda.GetNumArgs(), 0U); in TEST() 103 ASSERT_EQ(pda.GetReturnType().GetId(), panda_file::Type::TypeId::VOID); in TEST() [all …]
|
/arkcompiler/ets_runtime/ecmascript/regexp/tests/ |
D | dyn_chunk_test.cpp | 60 ASSERT_EQ(dynChunk.GetSize(), 7U); in HWTEST_F_L0() 61 ASSERT_EQ(dynChunk.GetAllocatedSize(), DynChunk::ALLOCATE_MIN_SIZE); in HWTEST_F_L0() 62 ASSERT_EQ(dynChunk.GetError(), false); in HWTEST_F_L0() 67 ASSERT_EQ(val1, 65U); in HWTEST_F_L0() 68 ASSERT_EQ(val2, 66U); in HWTEST_F_L0() 69 ASSERT_EQ(val3, 67U); in HWTEST_F_L0() 77 ASSERT_EQ(dynChunk.GetSize(), 2U); in HWTEST_F_L0() 78 ASSERT_EQ(dynChunk.GetAllocatedSize(), DynChunk::ALLOCATE_MIN_SIZE); in HWTEST_F_L0() 79 ASSERT_EQ(dynChunk.GetError(), false); in HWTEST_F_L0() 82 ASSERT_EQ(val1, 65U); in HWTEST_F_L0() [all …]
|
/arkcompiler/toolchain/tooling/test/ |
D | debugger_events_test.cpp | 72 ASSERT_EQ(breakpointResolved.ToJson()->GetObject("params", &json), Result::SUCCESS); in HWTEST_F_L0() 74 ASSERT_EQ(json->GetString("breakpointId", &breakpointId), Result::SUCCESS); in HWTEST_F_L0() 78 ASSERT_EQ(json->GetObject("location", &locationJson), Result::SUCCESS); in HWTEST_F_L0() 80 ASSERT_EQ(locationJson->GetString("scriptId", &scriptId), Result::SUCCESS); in HWTEST_F_L0() 83 ASSERT_EQ(locationJson->GetInt("lineNumber", &lineNumber), Result::SUCCESS); in HWTEST_F_L0() 96 ASSERT_EQ(json->GetObject("params", ¶ms), Result::SUCCESS); in HWTEST_F_L0() 99 ASSERT_EQ(params->GetString("reason", &reason), Result::SUCCESS); in HWTEST_F_L0() 102 ASSERT_EQ(params->GetArray("callFrames", &callFrames), Result::SUCCESS); in HWTEST_F_L0() 111 ASSERT_EQ(json1->GetObject("params", ¶ms), Result::SUCCESS); in HWTEST_F_L0() 121 ASSERT_EQ(json->GetString("method", &method), Result::SUCCESS); in HWTEST_F_L0() [all …]
|
/arkcompiler/runtime_core/compiler/tests/ |
D | encoder_operands.cpp | 75 ASSERT_EQ(arr[i], arr[4 + i]); in TEST() 76 ASSERT_EQ(arr[i], arr[8 + i]); in TEST() 77 ASSERT_EQ(arr[4 + i], arr[8 + i]); in TEST() 79 ASSERT_EQ(arr[i].GetSize(), arr[4 + i].GetSize()); in TEST() 80 ASSERT_EQ(arr[i].GetSize(), arr[8 + i].GetSize()); in TEST() 81 ASSERT_EQ(arr[4 + i].GetSize(), arr[8 + i].GetSize()); in TEST() 112 ASSERT_EQ(arr[2].GetSize(), arr[12].GetSize()); in TEST() 113 ASSERT_EQ(arr[2].GetSize(), arr[14].GetSize()); in TEST() 120 ASSERT_EQ(arr[3].GetSize(), arr[13].GetSize()); in TEST() 121 ASSERT_EQ(arr[3].GetSize(), arr[15].GetSize()); in TEST() [all …]
|
D | osr_test.cpp | 104 ASSERT_EQ(osr_events.size(), 1); in TEST_F() 119 ASSERT_EQ(osr_events.size(), 1); in TEST_F() 156 ASSERT_EQ(osr_events.size(), 1); in TEST_F() 170 ASSERT_EQ(osr_events.size(), 1); in TEST_F() 207 ASSERT_EQ(osr_events.size(), 1); in TEST_F() 263 ASSERT_EQ(osr_events.size(), 1); in TEST_F() 264 ASSERT_EQ(osr_events[0]->kind, events::OsrEntryKind::AFTER_CFRAME); in TEST_F() 265 ASSERT_EQ(osr_events[0]->result, events::OsrEntryResult::SUCCESS); in TEST_F() 280 ASSERT_EQ(osr_events.size(), 1); in TEST_F() 281 ASSERT_EQ(osr_events[0]->kind, events::OsrEntryKind::AFTER_CFRAME); in TEST_F() [all …]
|
D | inst_test.cpp | 99 ASSERT_EQ(static_cast<PhiInst &>(INS(6)).GetPhiInput(&BB(5)), &INS(3)); in TEST_F() 100 ASSERT_EQ(static_cast<PhiInst &>(INS(6)).GetPhiInput(&BB(4)), &INS(4)); in TEST_F() 101 ASSERT_EQ(static_cast<PhiInst &>(INS(6)).GetPhiInput(&BB(7)), &INS(5)); in TEST_F() 106 ASSERT_EQ(inst, user.GetInput()); in TEST_F() 123 ASSERT_EQ(static_cast<PhiInst &>(INS(6)).GetPhiInput(&BB(5)), &INS(0)); in TEST_F() 194 ASSERT_EQ(const1->GetType(), DataType::INT64); in TEST_F() 195 ASSERT_EQ(const1->GetBasicBlock(), start); in TEST_F() 198 ASSERT_EQ(const2->GetType(), DataType::INT64); in TEST_F() 199 ASSERT_EQ(const1, const2); in TEST_F() 200 ASSERT_EQ(const1->GetIntValue(), val1); in TEST_F() [all …]
|
/arkcompiler/runtime_core/compiler/tests/amd64/ |
D | register64_test.cpp | 74 ASSERT_EQ(encoder.GetScratchRegistersCount(), 0); in TEST_F() 75 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 79 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count); in TEST_F() 86 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count); in TEST_F() 87 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), 0); in TEST_F() 91 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 95 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count - 1); in TEST_F() 96 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 99 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count - 2); in TEST_F() 103 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count - 1); in TEST_F() [all …]
|
/arkcompiler/runtime_core/compiler/tests/aarch32/ |
D | register32_test.cpp | 74 ASSERT_EQ(encoder.GetScratchRegistersCount(), 0); in TEST_F() 75 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 79 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count); in TEST_F() 86 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count); in TEST_F() 87 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), 0); in TEST_F() 91 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 95 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count - 1); in TEST_F() 96 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 99 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count - 2); in TEST_F() 103 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count - 1); in TEST_F() [all …]
|
/arkcompiler/runtime_core/compiler/tests/aarch64/ |
D | register64_test.cpp | 71 ASSERT_EQ(encoder.GetScratchRegistersCount(), 0); in TEST_F() 72 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 76 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count); in TEST_F() 83 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count); in TEST_F() 84 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), 0); in TEST_F() 88 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 92 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count - 1); in TEST_F() 93 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count); in TEST_F() 96 ASSERT_EQ(encoder.GetScratchRegistersCount(), initial_count - 2); in TEST_F() 100 ASSERT_EQ(encoder.GetScratchFPRegistersCount(), initial_fp_count - 1); in TEST_F() [all …]
|
/arkcompiler/runtime_core/libziparchive/tests/ |
D | libziparchive_tests.cpp | 54 ASSERT_EQ(1, 0) << "CreateOrAddFileIntoZip for directory failed!"; in GenerateZipfile() 65 ASSERT_EQ(1, 0) << "CreateOrAddFileIntoZip for " << i << ".txt failed!"; in GenerateZipfile() 75 ASSERT_EQ(1, 0) << "CreateOrAddFileIntoZip for directory/indirectory.txt failed!"; in GenerateZipfile() 83 ASSERT_EQ(1, 0) << "CreateOrAddFileIntoZip for classes.abc failed!"; in GenerateZipfile() 97 ASSERT_EQ(1, 0) << "OpenArchiveFILE error."; in UnzipFileCheckDirectory() 103 ASSERT_EQ(1, 0) << "LocateFile error."; in UnzipFileCheckDirectory() 110 ASSERT_EQ(1, 0) << "GetCurrentFileInfo test error."; in UnzipFileCheckDirectory() 117 ASSERT_EQ(1, 0) << "OpenCurrentFile test error."; in UnzipFileCheckDirectory() 153 ASSERT_EQ(1, 0) << "OpenArchiveFILE error."; in UnzipFileCheckTxt() 159 ASSERT_EQ(1, 0) << "LocateFile error."; in UnzipFileCheckTxt() [all …]
|