| /arkcompiler/ets_runtime/test/aottest/binaryop_special_value/ |
| D | expect_output.txt | 15 NaN 16 NaN 17 NaN 18 NaN 19 NaN 34 NaN 35 NaN 36 NaN 37 NaN 38 NaN [all …]
|
| /arkcompiler/ets_runtime/test/aottest/mod/ |
| D | expect_output.txt | 17 NaN 18 NaN 21 NaN 22 NaN 23 NaN 24 NaN 25 NaN 26 NaN 27 NaN 28 NaN [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/21.multiplicative_expressions/01.multiplication/ |
| D | nan.params.yaml | 14 --- # List of multiplications where Double.NaN involved 15 nan: 16 - { x: Double.NaN, y: Double.NaN, result: Double.NaN } 17 - { x: Double.NaN, y: 0.0, result: Double.NaN } 18 - { x: 0.0, y: Double.NaN, result: Double.NaN } 19 - { x: Double.NaN, y: 1.0, result: Double.NaN } 20 - { x: 1.0, y: Double.NaN, result: Double.NaN } 22 - { x: Double.NaN, y: Double.POSITIVE_INFINITY, result: Double.NaN } 23 - { x: Double.POSITIVE_INFINITY, y: Double.NaN, result: Double.NaN } 25 - { x: Double.NaN, y: Double.NEGATIVE_INFINITY, result: Double.NaN } [all …]
|
| /arkcompiler/ets_runtime/test/aottest/equal_nan/ |
| D | equal_nan.ts | 15 print(NaN == NaN); 16 print(NaN === NaN); 17 print(NaN != NaN); 18 print(NaN !== NaN); 19 print(Number.NaN == Number.NaN); 20 print(Number.NaN === Number.NaN); 21 print(Number.NaN != Number.NaN); 22 print(Number.NaN !== Number.NaN);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | DoubleTest.sts | 31 "NaN", 32 "nan", 65 NaN, 66 NaN, 69 NaN, 70 NaN, 71 NaN, 76 NaN, 84 NaN, 85 NaN, [all …]
|
| D | GoodRadixTest.sts | 20 failures += test(checkGoodRadix(Double.NaN, 2, "NaN"), "Check Nan with radix 2"); 24 failures += test(checkGoodRadix(Double.NaN, 8, "NaN"), "Check Nan with radix 8"); 28 failures += test(checkGoodRadix(Double.NaN, 10, "NaN"), "Check Nan with radix 10"); 32 failures += test(checkGoodRadix(Double.NaN, 16, "NaN"), "Check Nan with radix 10");
|
| /arkcompiler/ets_runtime/test/moduletest/regressmathmaxmin/ |
| D | expect_output.txt | 15 NaN 16 NaN 17 NaN 18 NaN 21 NaN 22 NaN 23 NaN 24 NaN 27 NaN 28 NaN [all …]
|
| D | regressmathmaxmin.js | 52 // assertEquals(NaN, 53 print(Math.max(object_factory(0, NaN, [0]))); 57 // assertEquals(NaN, 58 print(Math.max(object_factory(0, NaN, [0, 0]), 63 // assertEquals(NaN, 64 print(Math.max(object_factory(0, NaN, [0, 0, 0]), 70 // assertEquals(NaN, 73 object_factory(2, NaN, [1, 1, 0]))); 87 // assertEquals(NaN, 88 print(Math.min(object_factory(0, NaN, [0]))); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/deopt_clear_aotflags/ |
| D | expect_output.txt | 14 NaN 15 NaN 16 NaN 17 NaN 18 NaN 19 NaN 20 NaN 21 NaN 22 NaN 23 NaN [all …]
|
| /arkcompiler/ets_runtime/test/aottest/pgo_ldobjbyvalue_string/ |
| D | pgo_expect_output.txt | 32 NaN 33 NaN 34 NaN 40 NaN 43 NaN 47 NaN 48 NaN 49 NaN 55 NaN 58 NaN
|
| D | expect_output.txt | 33 NaN 34 NaN 35 NaN 41 NaN 44 NaN 48 NaN 49 NaN 50 NaN 56 NaN 59 NaN
|
| /arkcompiler/ets_runtime/test/aottest/builtinmath/ |
| D | expect_output.txt | 16 NaN 17 NaN 20 NaN 21 NaN 34 NaN 35 NaN 43 NaN 44 NaN
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/22.additive_expressions/02.additive_operators_for_numeric_types/ |
| D | nan.params.yaml | 14 --- # List of addition tests where NaN is result 15 nan: 16 - {x: "Double.NaN", y: "Double.NaN", type: "double"} 17 - {x: 1.0, y: "Double.NaN", type: "double"} 18 - {x: "Double.NaN", y: 1.0, type: "double"} 21 - {x: "Double.NaN", y: "Double.NEGATIVE_INFINITY", type: "double"} 22 - {x: "Double.NEGATIVE_INFINITY", y: "Double.NaN", type: "double"} 23 - {x: "Double.NaN", y: "Double.POSITIVE_INFINITY", type: "double"} 24 - {x: "Double.POSITIVE_INFINITY", y: "Double.NaN", type: "double"}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/21.multiplicative_expressions/03.remainder/ |
| D | nan.params.yaml | 14 --- # List of remainder tests where Double.NaN involved 16 - { x: Double.NaN, y: Double.NaN } 17 - { x: Double.NaN, y: 1.0 } 18 - { x: 1.0, y: Double.NaN } 19 - { x: Double.NaN, y: -1.0 } 20 - { x: Double.NaN, y: Double.POSITIVE_INFINITY } 21 - { x: Double.POSITIVE_INFINITY, y: Double.NaN } 22 - { x: Double.NaN, y: Double.NEGATIVE_INFINITY } 23 - { x: Double.NEGATIVE_INFINITY, y: Double.NaN }
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Global.sts | 19 * Represents the NaN value according to IEEE-754 specification 21 export const NaN = Double.NaN; 73 * Checks if Double is `NaN` (not a number) 77 * @returns `true` if the argument is `NaN`, `false` otherwise. 84 * Checks if double is `NaN` (not a number) 88 * @returns `true` if the argument is `NaN`, `false` otherwise. 95 * Checks if `Float` value is `NaN` (not a number) 99 * @returns `true` if the argument is `NaN`, `false` otherwise. 106 * Checks if `float` value is `NaN` (not a number) 110 * @returns `true` if the argument is `NaN`, `false` otherwise. [all …]
|
| D | Math.sts | 74 * Math.abs(doubleNaN) = NaN 95 * acos(doubleNaN) = -nan 96 * acos(doubleInf) = nan 97 * acos(doubleNegInf) = nan 112 * Math.acosh(doubleNaN) = -NaN 114 * Math.acosh(doubleNegInf) = -NaN 141 * Math.asinh(doubleNaN) = -NaN 159 * Math.atan(doubleNaN) = -NaN 190 * Math.atanh(doubleNaN) = -NaN 191 * Math.atanh(doubleInf) = -NaN [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/21.multiplicative_expressions/02.division/ |
| D | nan.params.yaml | 14 --- # List of multiplications where Double.NaN involved 16 - { x: 'Double.NaN', y: 'Double.NaN' } 17 - { x: 'Double.NaN', y: 1.0 } 18 - { x: 1.0, y: 'Double.NaN' } 20 - { x: 'Double.NaN', y: 'Double.POSITIVE_INFINITY' } 21 - { x: 'Double.POSITIVE_INFINITY', y: 'Double.NaN' } 22 - { x: 'Double.NaN', y: 'Double.NEGATIVE_INFINITY' } 23 - { x: 'Double.NEGATIVE_INFINITY', y: 'Double.NaN' }
|
| /arkcompiler/ets_runtime/test/moduletest/builtins/ |
| D | expect_output.txt | 25 NaN 26 NaN 42 NaN 53 NaN 71 NaN 84 NaN 85 NaN 86 NaN 94 NaN 107 NaN [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_math.cpp | 36 // if number_value is double,NaN,Undefine, deal in this case in Abs() 60 // value == -NaN , <-1 or > 1,result is NaN in Acos() 115 // value == -NaN, NaN, result is NaN in Asinh() 134 // value == -NaN, NaN, result is NaN in Atan() 184 // If either x or y is NaN, the result is NaN in Atan2() 202 // if value == -NaN, NaN, result is NaN in Cbrt() 221 // If value is NaN or -NaN, +infinite, -infinite,return value in Ceil() 223 // if value is -NaN , return NaN, else return value in Ceil() 248 // If value is NaN or -NaN, +infinite, -infinite, 0,return 32 in Clz32() 266 // If value is NaN or -NaN, +infinite, -infinite, result is NaN in Cos() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | BitwiseOperationsOnFloat.sts | 53 assert (NaN & 42.131330352) == 0 54 assert (-NaN & -23432.34110144432) == 0 66 assert (NaN | 0.2) == 0 67 assert (-NaN | 0.3) == 0 79 assert (NaN ^ 99854258.24) == 99854258 80 assert (-NaN ^ 30483040.293244) == 30483040 94 assert (NaN << 330.3911) == 0 95 assert (-NaN << 12.91213) == 0 111 assert (NaN >> 11.000003) == 0 112 assert (-NaN >> 7.912130001) == 0 [all …]
|
| /arkcompiler/runtime_core/tests/regression/ |
| D | fcmp.pa | 18 movi.64 v0, 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 22 fldai.64 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 27 fldai.64 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 28 movi.64 v0, 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 35 movi.64 v0, 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 39 fldai.64 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 44 fldai.64 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 45 movi.64 v0, 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754
|
| /arkcompiler/runtime_core/static_core/tests/regression/ |
| D | fcmp.pa | 18 movi.64 v0, 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 22 fldai.64 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 27 fldai.64 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 28 movi.64 v0, 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 35 movi.64 v0, 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 39 fldai.64 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 44 fldai.64 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754 45 movi.64 v0, 0x7FFFFFFFFFFFFFFF # One of valid quiet NaN values as per IEEE 754
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_es_checked/ |
| D | array.yaml | 17 … - Array.of<number>(0, -0.0, 4, 1, 2, -1, Infinity, 11, -Infinity, 1, 21, 111, NaN, -NaN, 0, -0.0) 22 … "-self.length + 1", 1.1, 5.0, 100.0, -1.1, 2.0, "Infinity", "-Infinity", "NaN", "0x8 as number", … 23 … "-self.length + 1", 1.1, 5.0, 100.0, -1.1, 2.0, "Infinity", "-Infinity", "NaN", "0x8 as number", … 24 default_search: ["NaN", "-NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1] 50 …- combinationRest "Array.of<number>(1)", "Array.of<number>()", "Array.of<number>(NaN, 10, Infinity… 67 - paramOf(1.0, 12.0, "NaN") 76 … Array.of<number>(0, -0.0, 4, 1, 2, -1, Infinity, 11, -Infinity, 1, 21, 111, NaN, -NaN, 0, -0.0) 146 - Array.of<number>(2, 14, 7, 7, 18, NaN, NaN, 15, 12, 7, 20, 18, 1, 4) 150 const fn2 = (a: number, b: number): number => NaN 170 # - paramOf '0.0', 'NaN', '-1.0' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/math/ |
| D | BoundariesTest.sts | 18 const nan = Double.NaN; 32 return Double.isNaN(abs(nan)) 42 && Double.isNaN(sin(nan)) 50 && Double.isNaN(cos(nan)) 56 return Double.isNaN(acosh(nan)) 62 return Double.isNaN(acos(nan)) 68 return Double.isNaN(asin(nan)) 74 return Double.isNaN(atan(nan)) 82 return signbit(nan) 88 return Double.isNaN(round(nan)) [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Atan2/ |
| D | builtinMathAtan2.ts | 27 print(len); //: NaN 29 len = Math.atan2(NaN); 31 print(len); //: NaN 33 len = Math.atan2(NaN, NaN); 35 print(len); //: NaN 37 len = Math.atan2(0, NaN); 39 print(len); //: NaN 41 len = Math.atan2(NaN, 0); 43 print(len); //: NaN 85 len = Math.atan2(0, "NaN"); // deopt [all …]
|