| /arkcompiler/runtime_core/compiler/tests/ |
| D | if_conversion_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 26 GetGraph()->SetLowLevelInstructionsEnabled(); in IfConversionTest() 35 * /---[2]---\ 37 * [3] | 39 * \---[4]---/ 50 BASIC_BLOCK(2, 3, 4) in TEST_F() 52 INST(3, Opcode::Compare).b().CC(CC_B).Inputs(0, 1); in TEST_F() 53 INST(4, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(3); in TEST_F() 55 BASIC_BLOCK(3, 4) in TEST_F() [all …]
|
| D | loop_peeling_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 30 BASIC_BLOCK(2, 3, 4) in BuildGraphTwoBackEdges() 33 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(0); in BuildGraphTwoBackEdges() 35 BASIC_BLOCK(3, 2, 5) in BuildGraphTwoBackEdges() 44 BASIC_BLOCK(4, -1) in BuildGraphTwoBackEdges() 63 BASIC_BLOCK(6, 3) in BuildGraphNotHeaderExit() 65 INST(3, Opcode::Add).Inputs(1, 2).u64(); in BuildGraphNotHeaderExit() 67 BASIC_BLOCK(7, 3) in BuildGraphNotHeaderExit() 71 BASIC_BLOCK(3, 4, 5) in BuildGraphNotHeaderExit() [all …]
|
| D | code_sink_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 31 CONSTANT(3, 0x0).s64(); in TEST_F() 32 BASIC_BLOCK(2, 3, 4) in TEST_F() 35 INST(6, Opcode::Compare).b().CC(CC_NE).Inputs(0, 3); in TEST_F() 38 BASIC_BLOCK(4, -1) in TEST_F() 42 BASIC_BLOCK(3, -1) in TEST_F() 44 INST(11, Opcode::Return).s64().Inputs(3); in TEST_F() 53 CONSTANT(3, 0x0).s64(); in TEST_F() 54 BASIC_BLOCK(2, 3, 4) in TEST_F() [all …]
|
| D | cleanup_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 28 BASIC_BLOCK(2, 3) {} in TEST_F() 29 BASIC_BLOCK(3, -1) in TEST_F() 35 ASSERT_TRUE(GetGraph()->RunPass<Cleanup>()); in TEST_F() 40 BASIC_BLOCK(3, -1) in TEST_F() 54 BASIC_BLOCK(2, 3, 6) in TEST_F() 58 BASIC_BLOCK(3, 4, 5) in TEST_F() 60 INST(3, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_EQ).Inputs(0, 1); in TEST_F() 68 INST(5, Opcode::Phi).s64().Inputs({{3, 1}, {4, 4}}); in TEST_F() [all …]
|
| D | move_constants_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 31 BASIC_BLOCK(2, 4, 3) in TEST_F() 36 BASIC_BLOCK(3, -1) in TEST_F() 38 INST(3, Opcode::ReturnI).u64().Imm(0); in TEST_F() 46 BASIC_BLOCK(5, -1) in TEST_F() 51 BASIC_BLOCK(6, -1) in TEST_F() 61 BASIC_BLOCK(2, 4, 3) in TEST_F() 66 BASIC_BLOCK(3, -1) in TEST_F() 68 INST(3, Opcode::ReturnI).u64().Imm(0); in TEST_F() [all …]
|
| D | inst_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 17 #include "optimizer/ir_builder/inst_builder-inl.h" 35 * /---------------\ in TEST_F() 37 * [3]= [4]= in TEST_F() 39 * | /---------\ in TEST_F() 45 * \---------[8]--------/ in TEST_F() 54 BASIC_BLOCK(2, 3, 4) in TEST_F() 60 BASIC_BLOCK(3, 5) in TEST_F() 62 INST(3, Opcode::Not).u64().Inputs(0); in TEST_F() [all …]
|
| D | loop_analyzer_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 47 for (auto phi : block->PhiInsts()) { in CheckPhiInputs() 48 for (unsigned i = 0; i < phi->GetInputs().size(); i++) { in CheckPhiInputs() 49 … EXPECT_EQ(block->GetPredsBlocks()[i], phi->GetInputs()[i].GetInst()->GetBasicBlock()); in CheckPhiInputs() 68 * /------/------------->[3]<---------------------\ 71 * | | [4]<---------\ | 76 * [17] [19] [5]----------/ | 82 * [16] \--------------[8]<-------------\ | 88 * \----------------[15] [10]---------/ | [all …]
|
| D | basicblock_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 46 …* Check if block's false-successor is placed in the next position of the rpo vector or the block `… 51 …auto false_block_it = std::find(blocks_vector.begin(), blocks_vector.end(), block->GetFalseSuccess… in CheckBlockFalseSuccessorPosition() 56 EXPECT_TRUE((block_rpo_index + 1 == false_block_rpo_index) || (block->NeedsJump())); in CheckBlockFalseSuccessorPosition() 65 * /-------[2]-------\ 68 * [3] [4] 71 * | /--------[5] 77 * \----->[9]<-------/ 92 BASIC_BLOCK(2, 3, 4) in TEST_F() [all …]
|
| D | deoptimize_elimination_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 49 INST(3, Opcode::SaveStateDeoptimize).Inputs(1).SrcVregs({1}); in TEST_F() 51 INST(5, Opcode::DeoptimizeIf).Inputs(4, 3); in TEST_F() 62 ASSERT_TRUE(GetGraph()->RunPass<DeoptimizeElimination>()); in TEST_F() 63 ASSERT_TRUE(GetGraph()->RunPass<Cleanup>()); in TEST_F() 71 INST(3, Opcode::SaveStateDeoptimize).Inputs(1).SrcVregs({1}); in TEST_F() 73 INST(5, Opcode::DeoptimizeIf).Inputs(4, 3); in TEST_F() 92 INST(3, Opcode::SaveStateDeoptimize).Inputs(10).SrcVregs({10}); in TEST_F() 94 INST(5, Opcode::DeoptimizeIf).Inputs(4, 3); in TEST_F() [all …]
|
| D | vn_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 43 PARAMETER(3, 3).f64(); in TEST_F() 47 BASIC_BLOCK(2, -1) in TEST_F() 52 INST(9, Opcode::Div).f64().Inputs(3, 2); in TEST_F() 54 INST(11, Opcode::Div).f64().Inputs(3, 2); in TEST_F() 68 PARAMETER(3, 3).f64(); in TEST_F() 72 BASIC_BLOCK(2, -1) in TEST_F() 77 INST(9, Opcode::Div).f64().Inputs(3, 2); in TEST_F() 79 INST(11, Opcode::Div).f64().Inputs(3, 2); in TEST_F() [all …]
|
| D | liveness_analyzer_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 25 #define LIVE_RANGES_DEQUE(...) LiveRanges({__VA_ARGS__}, GetAllocator()->Adapter()) 48 * /--[2]--\ 52 * /----------->[4]---------->[3]<---------[15]-------\ 55 * [12] [5] [6]<-----------\ | 58 * \------------[11] [7] [10] | 61 * [13] [8]---------->[9] | 64 * [1] [14]---------------------/ 67 * [0, 2, 4, 5, 11, 12, 13, 1, 3, 6, 7, 8, 9, 10, 14, 15, 1] [all …]
|
| D | adjust_arefs_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 30 graph->SetLowLevelInstructionsEnabled(); in TEST_F() 37 CONSTANT(3, 10).s32(); in TEST_F() 39 BASIC_BLOCK(3, 4, 5) in TEST_F() 49 BASIC_BLOCK(4, 3) in TEST_F() 51 INST(40, Opcode::Add).s32().Inputs(10, 3); in TEST_F() 65 CONSTANT(3, 10).s32(); in TEST_F() 67 BASIC_BLOCK(3, 4, 5) in TEST_F() 70 …INST(11, Opcode::AddI).ptr().Inputs(0).Imm(graph->GetRuntime()->GetArrayDataOffset(graph->GetArch(… in TEST_F() [all …]
|
| D | graph_cloner_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 40 BASIC_BLOCK(2, 3, 6) in TEST_F() 43 INST(3, Opcode::NewArray).ref().Inputs(44, 2); in TEST_F() 47 BASIC_BLOCK(3, 3, 6) in TEST_F() 50 INST(7, Opcode::SaveState).Inputs(0, 1, 2, 3).SrcVregs({0, 1, 2, 3}); in TEST_F() 52 INST(9, Opcode::StoreArray).s32().Inputs(3, 8, 0); // a[i] = 0 in TEST_F() 64 …GraphCloner(GetGraph(), GetGraph()->GetAllocator(), GetGraph()->GetLocalAllocator()).CloneLoop(BB(… in TEST_F() 75 INST(3, Opcode::NewArray).ref().Inputs(44, 2); in TEST_F() 77 BASIC_BLOCK(7, 3, 6) in TEST_F() [all …]
|
| D | loop_unroll_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 31 …LoopUnrollTest() : opcodes_count_(GetAllocator()->Adapter()), exec_module_(GetAllocator(), GetGrap… in LoopUnrollTest() 33 LoopUnrollTest() : opcodes_count_(GetAllocator()->Adapter()) in LoopUnrollTest() 44 graph->SetLowLevelInstructionsEnabled(); in CheckRetOnVixlSimulator() 47 EXPECT_TRUE(graph->RunPass<Codegen>()); in CheckRetOnVixlSimulator() 48 auto entry = reinterpret_cast<char *>(graph->GetData().Data()); in CheckRetOnVixlSimulator() 49 auto exit = entry + graph->GetData().Size(); in CheckRetOnVixlSimulator() 64 for (auto inst : block->AllInsts()) { in CountOpcodes() 65 opcodes_count_[inst->GetOpcode()]++; in CountOpcodes() [all …]
|
| D | branch_elimination_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 50 for (auto inst : block->AllInsts()) { in InitBlockToBeDisconnected() 59 EXPECT_TRUE(block->GetGraph() == nullptr); in CheckBlocksDisconnected() 60 EXPECT_TRUE(block->IsEmpty()); in CheckBlocksDisconnected() 61 EXPECT_EQ(block->GetSuccsBlocks().size(), 0U); in CheckBlocksDisconnected() 62 EXPECT_EQ(block->GetPredsBlocks().size(), 0U); in CheckBlocksDisconnected() 63 for (auto inst : block->AllInsts()) { in CheckBlocksDisconnected() 64 EXPECT_TRUE(inst->GetBasicBlock() == nullptr); in CheckBlocksDisconnected() 65 EXPECT_TRUE(inst->GetUsers().Empty()); in CheckBlocksDisconnected() [all …]
|
| /arkcompiler/runtime_core/verification/util/tests/ |
| D | relation_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 33 +--> 2 --+ in TEST_F() 39 +--> 3 --+ in TEST_F() 41 relation += {{1, 2}, {1, 3}, {2, 4}, {3, 4}}; in TEST_F() 62 auto rhs = (Set {2, 3, 4}); in TEST_F() 64 EXPECT_EQ(get_set_from(1), (Set {2, 3, 4})); in TEST_F() 66 EXPECT_EQ(get_set_from(3), (Set {4})); in TEST_F() 67 EXPECT_EQ(get_set_to(4), (Set {1, 2, 3})); in TEST_F() 69 EXPECT_EQ(get_set_to(3), (Set {1})); in TEST_F() [all …]
|
| D | obj_pool_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 46 Pool pool {h, [&](S &s) { result -= s.a; }}; in TEST() 80 EXPECT_EQ(pool.Count(), 3); in TEST() 82 EXPECT_EQ(pool.AccCount(), 3); in TEST() 83 EXPECT_EQ(result, 3); in TEST() 85 EXPECT_EQ(pool.Count(), 3); in TEST() 91 EXPECT_EQ(pool.Count(), 3); in TEST() 93 EXPECT_EQ(pool.AccCount(), 3); in TEST() 94 EXPECT_EQ(result, 3); in TEST() [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | es5_tests.txt | 1 annexB/built-ins/Date/prototype/getYear/B.2.4.js 2 annexB/built-ins/Date/prototype/getYear/nan.js 3 annexB/built-ins/Date/prototype/getYear/return-value.js 4 annexB/built-ins/Date/prototype/getYear/this-not-date.js 5 annexB/built-ins/Date/prototype/setYear/B.2.5.js 6 annexB/built-ins/Date/prototype/setYear/this-not-date.js 7 annexB/built-ins/Date/prototype/setYear/this-time-nan.js 8 annexB/built-ins/Date/prototype/setYear/this-time-valid.js 9 annexB/built-ins/Date/prototype/setYear/time-clip.js 10 annexB/built-ins/Date/prototype/setYear/year-nan.js [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/spreadoperator/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 18 3 20 3 22 3 24 3 25 1,2,3 26 a,1 b,2 c,3 27 1 2 3 29 1 2 3 [all …]
|
| /arkcompiler/runtime_core/compiler/docs/ |
| D | code_sink_doc.md | 12 BB 3 13 0.i32 Parameter arg 0 -> (v5, v8, v7) 16 BB 0 preds: [bb 3] 17 8.i32 AddI v0, 0x1 -> (v6) 70 for (auto block : GetGraph()->GetBlocksRPO()) { 73 for (auto inst : block->InstsSafeReverse()) { 74 barriered |= inst->IsMonitor() || (inst->IsStore && inst->IsVolatile()); 77 block->EraseInst(inst); 78 candidate->PrependInst(inst); 88 if (inst->IsStore()) { [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/sources/ |
| D | literals_same.pa | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 .array array0 i32 3 { 2 3 4} 15 .array array1 i32 3 { 2 3 4} 16 .array array2 i32 3 { 2 3 4} 17 .array array3 i32 3 { 2 3 4}
|
| /arkcompiler/runtime_core/disassembler/tests/ |
| D | literals_test.cpp.in | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 36 ASSERT_NE(ss.str().find(".array array_0 i32 3 { 2 3 4 }"), std::string::npos); 37 ASSERT_NE(ss.str().find(".array array_1 i32 3 { 2 3 4 }"), std::string::npos); 38 ASSERT_NE(ss.str().find(".array array_2 i32 3 { 2 3 4 }"), std::string::npos); 39 ASSERT_NE(ss.str().find(".array array_3 i32 3 { 2 3 4 }"), std::string::npos); 53 ASSERT_NE(ss.str().find("panda.String 3 { \"a\" \"ab\" \"abc\" }"), std::string::npos); 54 ASSERT_NE(ss.str().find("u1 3 { 0 1 0 }"), std::string::npos); 55 ASSERT_NE(ss.str().find("i32 3 { 2 3 4 }"), std::string::npos); 56 ASSERT_NE(ss.str().find("f32 3 { 5.1 6.2 7.3 }"), std::string::npos);
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | call_signature.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 #pragma clang diagnostic ignored "-Wshadow" 21 #pragma clang diagnostic ignored "-Wunused-parameter" 24 #pragma GCC diagnostic ignored "-Wshadow" 25 #pragma GCC diagnostic ignored "-Wunused-parameter" 28 #include "llvm-c/Core.h" 39 /* 3 : 3 input parameters */ \ 40 CallSignature signature(#name, 0, 3, \ 43 /* 3 : 3 input parameters */ \ 44 std::array<VariableType, 3> params = { \ [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/ |
| D | test262skiplist-long.txt | 1 # RUNTIME-TIMEOUT 2 built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js 3 built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js 4 built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js 5 built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js 6 built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js 7 built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js 8 built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js 9 built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js 10 built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js [all …]
|
| /arkcompiler/runtime_core/bytecode_optimizer/tests/ |
| D | const_array_resolver_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 29 BASIC_BLOCK(2, -1) in TEST_F() 33 INST(3, Opcode::NewArray).ref().Inputs(4, 1, 20); in TEST_F() 34 INST(11, Opcode::StoreArray).u64().Inputs(3, 2, 2); in TEST_F() 35 INST(13, Opcode::StoreArray).u64().Inputs(3, 2, 2); in TEST_F() 36 INST(10, Opcode::Return).ref().Inputs(3); in TEST_F() 45 EXPECT_TRUE(graph->RunPass<ConstArrayResolver>(&interface)); in TEST_F() 52 BASIC_BLOCK(2, -1) in TEST_F() 72 BASIC_BLOCK(2, -1) in TEST_F() [all …]
|