Home
last modified time | relevance | path

Searched full:condition (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/arkcompiler/ets_runtime/test/jittest/bytecode_to_cir_with_insufficient_profile_003/
Dbytecode_to_cir_with_insufficient_profile_003.ts16 function Choose(condition) {
18 if (condition == 1) {
24 if (condition >= 2 && condition <= 5) {
30 if (condition > 5 && condition <9) {
35 if (condition === 9) {
41 if (condition != 9 && condition != 10) {
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/
Dencoder64_test_2.cpp34 …oder()->EncodeCompare(param1, param1, param2, std::is_signed_v<T> ? Condition::LT : Condition::LO); in TestCompare64()
651 template <typename T, Condition CC>
687 case Condition::LT: in TestSelect()
688 case Condition::LO: in TestSelect()
691 case Condition::EQ: in TestSelect()
694 case Condition::NE: in TestSelect()
697 case Condition::GT: in TestSelect()
698 case Condition::HI: in TestSelect()
716 EXPECT_TRUE((TestSelect<uint32_t, Condition::LO>(this))); in TEST_F()
717 EXPECT_TRUE((TestSelect<uint32_t, Condition::EQ>(this))); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dbranch_elimination.cpp30 * Condition can be resolved in the following ways:
31 * - Condition is constant;
32 …* - Condition is dominated by the equal one condition with the same inputs and the only one succes…
33 * reaches dominated condition
123 conditionInst->GetPc(), "const-condition", in BranchEliminationConst()
321 /// Resolve condition result if there is a dominant equal condition
322 std::optional<bool> BranchElimination::GetConditionResult(Inst *condition) in GetConditionResult() argument
324 ConditionOps ops {condition->GetInput(0).GetInst(), condition->GetInput(1).GetInst()}; in GetConditionResult()
331 // Find dom_cond's if_imm, that dominates target condition in GetConditionResult()
332 auto ifImm = FindIfImmDominatesCondition(domCond, condition); in GetConditionResult()
[all …]
/arkcompiler/runtime_core/static_core/compiler/tests/aarch32/
Dencoder32_test_2.cpp36 …oder()->EncodeCompare(param1, param1, param2, std::is_signed_v<T> ? Condition::GE : Condition::HS); in TestCompare()
91 …oder()->EncodeCompare(param1, param1, param2, std::is_signed_v<T> ? Condition::LT : Condition::LO); in TestCompare64()
639 template <typename T, Condition CC>
681 case Condition::LT: in TestSelect()
682 case Condition::LO: in TestSelect()
685 case Condition::EQ: in TestSelect()
688 case Condition::NE: in TestSelect()
691 case Condition::GT: in TestSelect()
692 case Condition::HI: in TestSelect()
710 EXPECT_TRUE((TestSelect<uint32_t, Condition::LO>(this))); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/compiler/docs/
Dbranch_elimination_doc.md4 `Branch Elimination` searches condition statements which result is known at compile-time and remove…
19 Condition can be resolved in the following ways:
20 - Condition is constant:
29 - Condition is dominated by the equal one condition with the same inputs and the only one successor…
53 To resolve the condition result by the dominant one we use table, keeps the result of the condition
120 We reaches basic block `4` when the condition `PARAMETER(0) == PARAMETER(1)` is false, so that the …
Dif_merging_doc.md4 `IfMerging` searches condition statements results of which are known from previous conditions and r…
19 Condition can be resolved in the following ways:
21 1. Condition is comparison of Phi instruction with constant inputs and some constant. In this case
22 for each input block of Phi instruction the branch of condition can be resolved, and If instruction…
51 2. Condition is dominated by an equivalent or inverted condition, and branches of the dominating
52 condition don't intersect. In this case branches of the second condition can be connected to
53 corresponding branches of the first condition, and the second If instruction can be removed.
Dlicm_conditions_doc.md4 …chains) and are not target of `LICM` pass. `LICM conditions` moves such condition chains outside o…
15 Condition chain is graph which looks like
29 Basic blocks A & B is a condition chain.
34 …ner to outer, skipping irreducible and OSR loops. In each loop it finds condition chains, which ca…
36 * Phis in condition chain successors must allow hoisting of condition chain basic blocks.
38 Then selected condition chains are removed from loop and inserted after loop pre-header.
41 Loop 1 contains condition chain BB4, BB6.
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/extensions/
Ddebugger.py65 condition: typing.Optional[str] = None variable in UrlBreakpointRequest
75 condition=str(json["condition"]) if "condition" in json else None,
89 if self.condition is not None:
90 json["condition"] = self.condition
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/
Dencoder64_test_2.cpp35 …tEncoder()->EncodeCmp(param1, param1, param2, std::is_signed_v<T> ? Condition::LT : Condition::LO); in TestCmp64()
87 …oder()->EncodeCompare(param1, param1, param2, std::is_signed_v<T> ? Condition::GE : Condition::HS); in TestCompare()
138 …oder()->EncodeCompare(param1, param1, param2, std::is_signed_v<T> ? Condition::LT : Condition::LO); in TestCompare64()
821 template <typename T, Condition CC>
857 case Condition::LT: in TestSelect()
858 case Condition::LO: in TestSelect()
861 case Condition::EQ: in TestSelect()
864 case Condition::NE: in TestSelect()
867 case Condition::GT: in TestSelect()
868 case Condition::HI: in TestSelect()
[all …]
/arkcompiler/ets_runtime/test/aottest/builtins_array/
Dbuiltins_array.ts81 const condition = (element) => element < 10; constant
82 array.some(condition);
89 const condition = (element) => element < 10; constant
90 array.every(condition);
110 const condition = (element) => element < 10; constant
111 array.findLastIndex(condition);
119 const condition = (element) => element < 10; constant
120 array.findLast(condition);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/01.integer_types_and_operations/ternary/
Dternary_long.params.yaml16 - { condition: 0, ifTrue: 1, ifFalse: 2, result: 2 }
17 - { condition: 1, ifTrue: 1, ifFalse: 2, result: 1 }
18 - { condition: -1, ifTrue: 1, ifFalse: 2, result: 1 }
Dternary_int.params.yaml16 - { condition: 0, ifTrue: 1, ifFalse: 2, result: 2 }
17 - { condition: 1, ifTrue: 1, ifFalse: 2, result: 1 }
18 - { condition: -1, ifTrue: 1, ifFalse: 2, result: 1 }
Dternary_short.params.yaml16 - { condition: 0, ifTrue: 1, ifFalse: 2, result: 2 }
17 - { condition: 1, ifTrue: 1, ifFalse: 2, result: 1 }
18 - { condition: -1, ifTrue: 1, ifFalse: 2, result: 1 }
Dternary_byte.params.yaml16 - { condition: 0, ifTrue: 1, ifFalse: 2, result: 2 }
17 - { condition: 1, ifTrue: 1, ifFalse: 2, result: 1 }
18 - { condition: -1, ifTrue: 1, ifFalse: 2, result: 1 }
Dternary_bigint.params.yaml16 - { condition: 0n, ifTrue: 1n, ifFalse: 2n, result: 2n }
17 - { condition: 1n, ifTrue: 1n, ifFalse: 2n, result: 1n }
18 - { condition: -1n, ifTrue: 1n, ifFalse: 2n, result: 1n }
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch32/
Dencode.cpp37 static vixl::aarch32::Condition Convert(const Condition cc) in Convert()
40 case Condition::EQ: in Convert()
42 case Condition::NE: in Convert()
44 case Condition::LT: in Convert()
46 case Condition::GT: in Convert()
48 case Condition::LE: in Convert()
50 case Condition::GE: in Convert()
52 case Condition::LO: in Convert()
54 case Condition::LS: in Convert()
56 case Condition::HI: in Convert()
[all …]
Dtarget.h345 void EncodeCmp(Reg dst, Reg src0, Reg src1, Condition cc) override;
347 void EncodeCompare(Reg dst, Reg src0, Reg src1, Condition cc) override;
348 void EncodeCompareTest(Reg dst, Reg src0, Reg src1, Condition cc) override;
395 void EncodeJump(LabelHolder::LabelId id, Reg src, Condition cc) override;
397 void EncodeJump(LabelHolder::LabelId id, Reg src, Imm imm, Condition cc) override;
399 void EncodeJump(LabelHolder::LabelId id, Reg src0, Reg src1, Condition cc) override;
401 void EncodeJumpTest(LabelHolder::LabelId id, Reg src, Imm imm, Condition cc) override;
403 void EncodeJumpTest(LabelHolder::LabelId id, Reg src0, Reg src1, Condition cc) override;
470 void CompareHelper(Reg src0, Reg src1, Condition *cc);
471 void TestHelper(Reg src0, Reg src1, Condition cc);
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/
Doptimized_fast_call.cpp129 __ B(Condition::NE, &arg4); in OptimizedFastCallAndPushArgv()
141 __ B(Condition::NE, &arg5); in OptimizedFastCallAndPushArgv()
153 __ B(Condition::NE, &arg6); in OptimizedFastCallAndPushArgv()
166 __ B(Condition::NE, &arg7); in OptimizedFastCallAndPushArgv()
178 __ B(Condition::NE, &arg8); in OptimizedFastCallAndPushArgv()
189 __ B(Condition::NE, &argc); in OptimizedFastCallAndPushArgv()
201 __ B(Condition::GT, &pushUndefined); in OptimizedFastCallAndPushArgv()
221 __ B(Condition::LS, &call); in OptimizedFastCallAndPushArgv()
271 __ B(Condition::EQ, &call); in JSFastCallWithArgV()
278 __ B(Condition::EQ, &call); in JSFastCallWithArgV()
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/base/
Dcondition.cpp16 #include "condition.h"
26 bool Condition::CompileBinaryExpr(PandaGen *pg, const ir::BinaryExpression *binExpr, Label *falseLa… in CompileBinaryExpr()
39 // if-else branches. Condition also expressed via cmp instruction and in CompileBinaryExpr()
48 pg->Condition(binExpr, binExpr->OperatorType(), lhs, falseLabel); in CompileBinaryExpr()
81 void Condition::Compile(PandaGen *pg, const ir::Expression *expr, Label *falseLabel) in Compile()
102 bool Condition::CompileBinaryExprForBigInt(ETSGen *etsg, const ir::BinaryExpression *expr, Label *f… in CompileBinaryExprForBigInt()
150 void Condition::CompileInstanceofExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *fal… in CompileInstanceofExpr()
157 void Condition::CompileLogical(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel) in CompileLogical()
186 bool Condition::CompileBinaryExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLa… in CompileBinaryExpr()
205 etsg->Condition(binExpr, binExpr->OperatorType(), lhs, falseLabel); in CompileBinaryExpr()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DArrayBufferViewTest.ets29 static assertTrue(condition: boolean, message: string): void {
30 if (!condition) throw new AssertionError(message)
33 static assertFalse(condition: boolean, message: string): void {
34 if (condition) throw new AssertionError(message)
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/testing/
Darktest.ets20 * Produce AssertionError if condition is false. Print an additinal message in this case
21 * @param condition the checking condition
22 * @param message Error message for false condition
24 * @throws AssertionError if condition is false
26 function assertCommon(condition: boolean, message: string, description?: string): void {
27 if (!condition) {
43 * Assert that the supplied condition is true
44 * @param condition supplied condition
46 * @throws AssertionFailed if condition is false
48 export function assertTrue(condition: boolean, comment?: string): void {
[all …]
/arkcompiler/toolchain/tooling/static/types/
Durl_breakpoint_request.cpp45 if (auto condition = object.template GetValue<JsonObject::StringT>("condition")) { in FromJson() local
46 parsed.condition_ = *condition; in FromJson()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/
Durl_breakpoint_request.cpp45 if (auto condition = object.template GetValue<JsonObject::StringT>("condition")) { in FromJson() local
46 parsed.condition_ = *condition; in FromJson()
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Darray_literals.ets111 const condition = true;
112 a = condition ? [1, 2] : [3, 4]; // OK
113 b = condition ? [5, 6] : [7, 8]; // NOW OK
114 c = condition ? [9, 10] : [11, 12]; // OK
115 d = condition ? [13, 14] : [15, 16]; // NOW OK
116 e = condition ? [17, 18] : [19, 20]; // OK
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dllvm_infer_flags.ets29 function condition(i: int, i0: int): boolean {
36 if (condition(i, i0)) {
56 if (condition(i, i0)) {
77 if (condition(i, i0)) {

12345678910>>...17