Home
last modified time | relevance | path

Searched full:zero (Results 1 – 25 of 779) sorted by relevance

12345678910>>...32

/arkcompiler/ets_runtime/test/aottest/float64divzero/
Dfloat64divzero.ts20 var zero:number = 0.0
21 var inf1:number = num0 / zero
23 var nan1:number = zero / zero
25 print(inf1/zero)
26 print(nan1/zero)
/arkcompiler/ets_runtime/test/jittest/typed_array/
Dtyped_array.ts15 const zero = (buf) => { constant
24 zero(uint16array);
27 ArkTools.jitCompileAsync(zero);
28 let res = ArkTools.waitJitCompileFinish(zero);
31 zero(uint16array)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/test-lists/ets-func-tests/
Dets-func-tests-excluded-TSAN.txt5 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-2-operands-zero-negative.ets
6 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-2-operands-zero.ets
10 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal-zero-negative-number.ets
11 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal-zero.ets
39 spec/03.types/References_Types/Bigint/bigint-arithmetic-mul-2-operands-zero.ets
50 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-2-operands-zero-negative.ets
51 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-2-operands-zero.ets
54 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal-zero-negative.ets
55 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal-zero.ets
Dets-func-tests-excluded-JIT-REPEATS.txt4 spec/03.types/References_Types/Bigint/bigint-arithmetic-mul-2-operands-zero-negative-number.ets
7 spec/03.types/References_Types/Bigint/bigint-arithmetic-div-2-operands-zero-negative.ets
8 spec/03.types/References_Types/Bigint/bigint-arithmetic-div-equal-zero-negative-number.ets
74 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-2-operands-zero.ets
75 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal-zero.ets
76 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-2-operands-zero-negative.ets
77 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-2-operands-zero.ets
78 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal-zero-negative.ets
79 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal-zero.ets
83 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-2-operands-zero-negative.ets
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/enums/
Denums.ts16 const ZERO = 0; constant
45 assertEq(Letter.A, ZERO);
49 assertEq(Color.Red, ZERO);
52 assertEq(Color.White, ZERO);
54 assertEq(Color1.Red, ZERO);
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DDataView.ets82 * @param byteOffset zero index to read
91 * @param byteOffset zero index to write (big endian)
99 * @param byteOffset zero index to read
108 * @param byteOffset zero index to write (big endian)
156 * @param byteOffset zero index to read
165 * @param byteOffset zero index to write (big endian)
173 * @param byteOffset zero index to read
182 * @param byteOffset zero index to write (big endian)
229 * @param byteOffset zero index to read
238 * @param byteOffset zero index to write (big endian)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/escompat/
Descompat.ets44 assertEQ( (arr.at(0)! as FooClass).name, "zero");
48 assertEQ( (arr.at(idx)! as FooClass).name, "zero");
52 assertEQ( arr.toString(), "{Foo named zero},{Foo named one},{Foo named two}");
74 assertEQ( arr.at(1)!.toString(), "{Foo named zero}");
82 assertEQ( toSorted.at(1)!.toString(), "{Foo named zero}");
87 assertEQ( arr.at(1)!.toString(), "{Foo named zero}");
92 assertEQ( arr.toString(), "{Foo named zero},{Foo named one}");
143 assertEQ( shifted.toString(), "{Foo named zero}");
163 // assertTrue arr.toString() == "{Foo named zero},{Foo named two}";
165 // assertTrue arr.toString() == "{Foo named zero}";
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DTypeFieldTest.ets48 static ZERO: double = 0.0
56 let zf = pt.getFieldByName("ZERO")
72 test(zf.getName() == "ZERO", "FieldName: ZERO") +
77 test((zf.getStaticValue() as Double).unboxed() == Point3D.ZERO, " static value") +
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_private.cpp288 … thread, prototype, ContainersArrayList::ArrayListConstructor, "ArrayList", FuncLength::ZERO)); in InitializeArrayList()
307 FuncLength::ZERO); in InitializeArrayList()
342 FuncLength::ZERO)); in InitializeLightWeightMap()
358 FuncLength::ZERO); in InitializeLightWeightMap()
395 "LightWeightSet", FuncLength::ZERO)); in InitializeLightWeightSet()
410 CreateGetter(thread, ContainersLightWeightSet::GetSize, "length", FuncLength::ZERO); in InitializeLightWeightSet()
447 … thread, mapFuncPrototype, ContainersTreeMap::TreeMapConstructor, "TreeMap", FuncLength::ZERO)); in InitializeTreeMap()
475 CreateGetter(thread, ContainersTreeMap::GetLength, "length", FuncLength::ZERO); in InitializeTreeMap()
494 …FrozenFunction(thread, mapIteratorPrototype, "next", JSAPITreeMapIterator::Next, FuncLength::ZERO); in InitializeTreeMapIterator()
511 … thread, setFuncPrototype, ContainersTreeSet::TreeSetConstructor, "TreeSet", FuncLength::ZERO)); in InitializeTreeSet()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
Dinstruction_combine_test.cpp165 auto zero = builder.Int32(0); in HWTEST_F_L0() local
166 auto result = instcombie.VisitGate(builder.Int32Add(builder.Int32Sub(zero, x), y)); in HWTEST_F_L0()
176 auto zero = builder.Int32(0); in HWTEST_F_L0() local
177 auto result = instcombie.VisitGate(builder.Int32Add(y, builder.Int32Sub(zero, x))); in HWTEST_F_L0()
732 auto zero = b.Double(0); in HWTEST_F_L0() local
742 EXPECT_EQ(instcombie.VisitGate(b.DoubleMod(x, zero)), nan); in HWTEST_F_L0()
814 auto zero = b.Int32(0); in HWTEST_F_L0() local
825 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, zero)), zero); in HWTEST_F_L0()
826 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(zero, x)), zero); in HWTEST_F_L0()
827 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, one)), zero); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dfdiv2.yaml49 # Positive zero
54 # Negative zero
106 # Positive zero
111 # Negative zero
162 description: Division is infinity if any non zero value is divided by zero.
231 description: Division is infinity if any non zero value is divided by zero.
443 description: Division is infinity if any non zero value is divided by zero.
519 description: Division is infinity if any non zero value is divided by zero.
732 description: Division is NaN if zero is divided by zero.
739 # Div of zero by zero
Dfdiv2.64.yaml49 # Positive zero
54 # Negative zero
106 # Positive zero
111 # Negative zero
162 description: Division is infinity if any non zero value is divided by zero.
231 description: Division is infinity if any non zero value is divided by zero.
444 description: Division is infinity if any non zero value is divided by zero.
520 description: Division is infinity if any non zero value is divided by zero.
735 description: Division is NaN if zero is divided by zero.
742 # Div of zero by zero
Dfadd2.yaml50 # Positive zero
55 # Negative zero
107 # Positive zero
112 # Negative zero
337 The sum or the difference of zeros is zero.
338 … two negative zeros and the difference of negative and positive zero - the result is negative zero.
341 description: Check fadd2 with positive zero and various values (Inf, min, max, numbers).
396 The sum or the difference of zeros is zero.
397 … two negative zeros and the difference of negative and positive zero - the result is negative zero.
400 description: Check fadd2 with negative zero and various values (Inf, min, max, numbers).
[all …]
Dfadd2.64.yaml50 # Positive zero
55 # Negative zero
107 # Positive zero
112 # Negative zero
337 The sum or the difference of zeros is zero.
338 … two negative zeros and the difference of negative and positive zero - the result is negative zero.
341 description: Check fadd2.64 with positive zero and various values (Inf, min, max, numbers).
396 The sum or the difference of zeros is zero.
397 … two negative zeros and the difference of negative and positive zero - the result is negative zero.
400 description: Check fadd2.64 with negative zero and various values (Inf, min, max, numbers).
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dfdiv2.yaml49 # Positive zero
54 # Negative zero
106 # Positive zero
111 # Negative zero
162 description: Division is infinity if any non zero value is divided by zero.
231 description: Division is infinity if any non zero value is divided by zero.
443 description: Division is infinity if any non zero value is divided by zero.
519 description: Division is infinity if any non zero value is divided by zero.
733 description: Division is NaN if zero is divided by zero.
740 # Div of zero by zero
Dfdiv2.64.yaml49 # Positive zero
54 # Negative zero
106 # Positive zero
111 # Negative zero
162 description: Division is infinity if any non zero value is divided by zero.
231 description: Division is infinity if any non zero value is divided by zero.
443 description: Division is infinity if any non zero value is divided by zero.
519 description: Division is infinity if any non zero value is divided by zero.
733 description: Division is NaN if zero is divided by zero.
740 # Div of zero by zero
Dfadd2.yaml50 # Positive zero
55 # Negative zero
107 # Positive zero
112 # Negative zero
337 The sum or the difference of zeros is zero.
338 … two negative zeros and the difference of negative and positive zero - the result is negative zero.
341 description: Check fadd2 with positive zero and various values (Inf, min, max, numbers).
396 The sum or the difference of zeros is zero.
397 … two negative zeros and the difference of negative and positive zero - the result is negative zero.
400 description: Check fadd2 with negative zero and various values (Inf, min, max, numbers).
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/concurrent_set/
DConcurrentSet_ForEachTest_Two.ets22 let arrValues: string[] = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", …
35 if (valOne == "zero") {
36 assertEQ(valOne, "zero");
37 assertEQ(valTwo, "zero");
44 let addstr = "ConcurrentSet[zero,one]";
DConcurrentSet_ForEachTest_Three.ets22 let arrValues: string[] = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", …
35 if (valOne == "zero") {
36 assertEQ(valOne, "zero");
37 assertEQ(valTwo, "zero");
44 let addstr = "ConcurrentSet[zero,one]";
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dindex_negative.ets.arkts2.json94 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
114 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
204 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
254 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
274 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
344 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
454 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
484 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
534 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
584 … "rule": "The index expression must be zero or positive value.(arkts-array-index-negative)",
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dconstant_expression_divide_zero.ets28 /* @@? 20:14 Error SyntaxError: Division by zero are not allowed in Enum or Annotation. */
29 /* @@? 24:11 Error SyntaxError: Division by zero are not allowed in Enum or Annotation. */
/arkcompiler/runtime_core/libabckit/tests/ut/ir_core/loops/
Dloops.cpp45 AbckitInst *zero = g_implG->gFindOrCreateConstantU64(graph, 0x0); in CreateLoopDynamic() local
49 g_implG->bbAddInstBack(startBB, zero); in CreateLoopDynamic()
56 AbckitInst *phi = g_implG->bbCreatePhi(forBB, 1, zero); in CreateLoopDynamic()
93 AbckitInst *zero = g_implG->gFindOrCreateConstantU64(graph, 0x0); in CreateLoopStatic() local
97 g_implG->bbAddInstBack(startBB, zero); in CreateLoopStatic()
105 AbckitInst *phi = g_implG->bbCreatePhi(forBB, 1, zero); in CreateLoopStatic()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/06.identifiers/
Didentifiers_n.params.yaml16 - '\u200Dabc' # Zero Width Joiner
17 - '\u200Cabc' # Zero Width Non-Joiner
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/03.object_literal_of_record_type/
Dre.params.yaml27 0: "Zero",
31 assertEQ(a[0], "Zero")
47 0: foo("Zero"),
63 "Zero": 0b0,
68 assertEQ(a["Zero"], 0)
74 assertEQ(a["Zero"], undefined)
81 let a: Record<"Zero" | "One" | "Two", number> = {
82 "Zero": 0b0,
86 assertEQ(a["Zero"], 0)
92 let a: Record<string | "Zero" | "One" | "Two", number> = {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/array_ops/
Dfixedarray_new_ref_test.cpp24 static constexpr const ani_size ZERO = 0; member in ark::ets::ani::testing::ArrayNewRefTest
58 // Test zero length in TEST_F()
60 ASSERT_EQ(env_->FixedArray_New_Ref(cls, ZERO, nullptr, &zeroLengthArray), ANI_OK); in TEST_F()
64 ASSERT_EQ(zeroLengthSize, ZERO); in TEST_F()
107 …ASSERT_EQ(env_->String_GetUTF8SubString(reinterpret_cast<ani_string>(element), ZERO, stringLength,… in TEST_F()
173 ASSERT_EQ(env_->FixedArray_New_Ref(cls, ZERO, undefinedRef, &array1), ANI_OK); in TEST_F()
180 ASSERT_EQ(env_->FixedArray_New_Ref(cls, ZERO, str, &array3), ANI_PENDING_ERROR); in TEST_F()

12345678910>>...32