| /arkcompiler/ets_frontend/es2panda/util/ |
| D | base64.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 28 …for (size_t i = 0, j = 0; i < encodedRes.length() - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFOR… in Base64Encode() 33 …encodedRes[i + 1] = base64CharSet[(inputString[j] & 0x03) << 4 | (inputString[j + 1] & 0xf0) >> 4]; in Base64Encode() 35 …encodedRes[i + 2] = base64CharSet[(inputString[j + 1] & 0x0f) << 2 | (inputString[j + 2] & 0xc0) >… in Base64Encode() 40 case 1: in Base64Encode() 41 encodedRes[encodedRes.length() - 2] = '='; in Base64Encode() 42 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode() 45 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode() 56 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode() 57 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode() [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | lda.const.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - file-name: lda.const 19 … Create a new single-dimensional constant literal array and put a reference to it into register. 22 - file-name: array_def_err 28 - sig: lda.const v:out:ref, literalarray_id 32 - constant_literalarray_id 33 runner-options: [compile-failure] 34 header-template: [] 35 code-template: | [all …]
|
| D | mod2.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 16 - file-name: "mod2" 22 - x_arith 24 - file-name: "op_vs_8_zero" 27 - sig: mod2 v:in:i32 31 code-template: | 41 ldai 1 45 - values: 46 - "0" [all …]
|
| D | ldarr.8.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly 18 - name: aoobe_p 21 - name: aoobe_j 24 - name: npe_p 27 - name: npe_j 31 - file-name: "ldarr.8" 38 - file-name: "read_arr_p" 41 - sig: ldarr.8 v:in:i8[] [all …]
|
| D | ldarr.64.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly 18 - name: aoobe_p 21 - name: aoobe_j 24 - name: npe_p 27 - name: npe_j 31 - file-name: "ldarr.64" 37 - file-name: "read_arr_p" 40 - sig: ldarr.64 v:in:i64[] [all …]
|
| D | ldarru.8.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly 18 - name: aoobe_p 21 - name: aoobe_j 24 - name: npe_p 27 - name: npe_j 31 - file-name: "ldarru.8" 38 - file-name: "read_arr_p" 41 - sig: ldarru.8 v:in:u8[] [all …]
|
| D | ldarru.16.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly 18 - name: aoobe_p 21 - name: aoobe_j 24 - name: npe_p 27 - name: npe_j 31 - file-name: "ldarru.16" 38 - file-name: "read_arr_p" 41 - sig: ldarru.16 v:in:u16[] [all …]
|
| D | ldarr.16.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly 18 - name: aoobe_p 21 - name: aoobe_j 24 - name: npe_p 27 - name: npe_j 31 - file-name: "ldarr.16" 38 - file-name: "read_arr_p" 41 - sig: ldarr.16 v:in:i16[] [all …]
|
| D | jlez.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 16 - file-name: "jlez" 22 if signed 32-bit integer in accumulator compares with 0 as specified. 25 - x_none 28 - file-name: "op" 31 - sig: jlez imm:i32 37 code-template: | 40 check-type: exit-positive 42 - values: [all …]
|
| D | ldarr.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly 18 - name: aoobe_p 21 - name: aoobe_j 24 - name: npe_p 27 - name: npe_j 31 - file-name: "ldarr" 37 - file-name: "read_arr_p" 40 - sig: ldarr v:in:i32[] [all …]
|
| D | fldarr.32.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly 18 - name: aoobe_p 21 - name: aoobe_j 24 - name: npe_p 27 - name: npe_j 31 - file-name: "fldarr.32" 37 - file-name: "read_arr_p" 40 - sig: fldarr.32 v:in:f32[] [all …]
|
| D | fldarr.64.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: PandaAssembly 18 - name: aoobe_p 21 - name: aoobe_j 24 - name: npe_p 27 - name: npe_j 31 - file-name: "fldarr.64" 37 - file-name: "read_arr_p" 40 - sig: fldarr.64 v:in:f64[] [all …]
|
| /arkcompiler/runtime_core/assembler/ |
| D | context.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 17 #include "assembly-parser.h" 18 #include "utils/number-utils.h" 30 number = 1; in Make() 34 …token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in Make() 35 tokens[number - 1].bound_right - tokens[number - 1].bound_left); in Make() 37 id = this->tokens[number - 1].type; in Make() 50 p.remove_prefix(1); in ValidateRegisterName() 52 if (p.empty() || (p.size() > 1 && p[0] == '0')) { in ValidateRegisterName() [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | design-of-interpreter.md | 10 | ------------------------------- | ---------------------------------------------------------- | 23 1. The platform should scale from microcontrollers to hi-end mobile phones: 24 1. It should fit into 50Kb of ROM. 25 1. It should be able to run consuming 64Kb of RAM. 26 1. Program execution via bytecode interpretation should be enabled on all targets. 27 1. The platform should support multiple programming languages 33 1. Bytecode should allow the interpreter to run no slower than state of the art interpreters. 34 1. Bytecode should be compact in size to avoid bloating application code. 35 1. Bytecode description should have a single entry point to simplify maintenance 40 1. Bytecode is register-based: all arguments and variables are mapped to virtual registers, [all …]
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | move_constants_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 28 PARAMETER(0, 1).u64(); in TEST_F() 29 CONSTANT(1, nullptr); in TEST_F() 36 BASIC_BLOCK(3, -1) in TEST_F() 46 BASIC_BLOCK(5, -1) in TEST_F() 48 INST(6, Opcode::Return).ref().Inputs(1); in TEST_F() 51 BASIC_BLOCK(6, -1) in TEST_F() 53 INST(8, Opcode::Return).ref().Inputs(1); in TEST_F() 59 PARAMETER(0, 1).u64(); in TEST_F() [all …]
|
| D | split_resolver_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 36 graph->RunPass<LivenessAnalyzer>(); in RunLivenessAnalysis() 37 return &graph->GetAnalysis<LivenessAnalyzer>(); in RunLivenessAnalysis() 42 auto split = source->SplitAt(position - 1, GetAllocator()); in SplitAssignReg() 43 split->SetReg(reg); in SplitAssignReg() 49 auto split = source->SplitAt(position - 1, GetAllocator()); in SplitAssignSlot() 50 split->SetLocation(Location::MakeStackSlot(slot)); in SplitAssignSlot() 56 ASSERT(source->GetInst()->IsConst()); in SplitAssignImmSlot() 57 auto split = source->SplitAt(position - 1, GetAllocator()); in SplitAssignImmSlot() [all …]
|
| D | vn_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 41 PARAMETER(1, 1).u64(); in TEST_F() 47 BASIC_BLOCK(2, -1) in TEST_F() 49 INST(6, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 50 INST(7, Opcode::Sub).u32().Inputs(1, 0); in TEST_F() 53 INST(10, Opcode::Sub).u32().Inputs(1, 0); in TEST_F() 56 INST(13, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 66 PARAMETER(1, 1).u64(); in TEST_F() 72 BASIC_BLOCK(2, -1) in TEST_F() [all …]
|
| 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]---\ 39 * \---[4]---/ 48 CONSTANT(1, 10); in TEST_F() 52 INST(3, Opcode::Compare).b().CC(CC_B).Inputs(0, 1); in TEST_F() 59 BASIC_BLOCK(4, -1) in TEST_F() 66 GetGraph()->RunPass<IfConversion>(); in TEST_F() 72 CONSTANT(1, 10); 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 41 CONSTANT(1, 0); in TEST_F() 42 BASIC_BLOCK(2, 1) in TEST_F() 45 INST(2, Opcode::SaveStateDeoptimize).Inputs(1).SrcVregs({1}); in TEST_F() 47 INST(10, Opcode::SaveState).Inputs(1).SrcVregs({1}); in TEST_F() 49 INST(3, Opcode::SaveStateDeoptimize).Inputs(1).SrcVregs({1}); in TEST_F() 50 INST(4, Opcode::Compare).b().Inputs(0, 1).CC(CC_GT); in TEST_F() 53 INST(6, Opcode::SaveStateDeoptimize).Inputs(1).SrcVregs({1}); in TEST_F() 57 INST(8, Opcode::DeoptimizeIf).Inputs(1, 6); 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 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() 53 PARAMETER(1, 1).s64(); in TEST_F() 56 INST(2, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_LE).Inputs(0, 1); in TEST_F() 60 INST(3, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_EQ).Inputs(0, 1); in TEST_F() 64 INST(4, Opcode::Add).s64().Inputs(0, 1); in TEST_F() 68 INST(5, Opcode::Phi).s64().Inputs({{3, 1}, {4, 4}}); in TEST_F() [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() 35 PARAMETER(1, 1).s32(); in TEST_F() 41 INST(10, Opcode::Phi).s32().Inputs(1, 40); in TEST_F() 42 INST(11, Opcode::LoadArray).u64().Inputs(0, 1); in TEST_F() 43 INST(12, Opcode::LoadArray).u64().Inputs(0, 1); in TEST_F() 44 INST(13, Opcode::StoreArray).u64().Inputs(0, 1, 2); in TEST_F() 45 INST(14, Opcode::StoreArray).u64().Inputs(0, 1, 2); in TEST_F() 46 INST(15, Opcode::Compare).b().Inputs(10, 1); in TEST_F() [all …]
|
| D | lowering_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 29 graph_->SetLowLevelInstructionsEnabled(); in LoweringTest() 37 graph->SetLowLevelInstructionsEnabled(); in ReturnTest() 40 auto cnst = graph->FindOrCreateConstant(val); in ReturnTest() 41 auto block = graph->CreateEmptyBlock(); in ReturnTest() 42 graph->GetStartBlock()->AddSucc(block); in ReturnTest() 43 block->AddSucc(graph->GetEndBlock()); in ReturnTest() 44 auto ret = graph->CreateInstReturn(); in ReturnTest() 45 ret->SetType(type); in ReturnTest() [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 …]
|
| /arkcompiler/runtime_core/tests/cts-generator/runner/reporters/ |
| D | test_reporter.rb | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 30 @logger.log 2, '----------------------------------------' 74 @logger.log 1, "TEST FAILED: #{@pa_file}" 75 @logger.log 1, 'Compilation failed.' 76 @logger.log 1, output unless output.empty? 80 @logger.log 1, "TEST FAILED: #{@pa_file}" 81 @logger.log 1, 'Quickening failed.' 82 @logger.log 1, output unless output.empty? 86 @logger.log 1, "TEST FAILED: #{@pa_file}" [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 …]
|