| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_math.cpp | 38 // if number_value is double,NaN,Undefine, deal in this case in Abs() 57 // value == -NaN , <-1 or > 1,result is NaN in Acos() 109 // value == -NaN, NaN, result is NaN in Asinh() 127 // value == -NaN, NaN, result is NaN in Atan() 174 // If either x or y is NaN, the result is NaN in Atan2() 191 // if value == -NaN, NaN, result is NaN in Cbrt() 209 // If value is NaN or -NaN, +infinite, -infinite,return value in Ceil() 211 // if value is -NaN , return NaN, else return value in Ceil() 235 // If value is NaN or -NaN, +infinite, -infinite, 0,return 32 in Clz32() 252 // If value is NaN or -NaN, +infinite, -infinite, result is NaN in Cos() [all …]
|
| D | builtins_number.cpp | 80 // 2. If number is NaN, +infinite, or -infinite, return false in IsFinite() 96 // 2. If number is NaN, +infinite, or -infinite, return false in IsInteger() 116 // 2. If number is NaN, return true. in IsNaN() 133 // 2. If number is NaN, +infinite, or -infinite, return false in IsSafeInteger() 165 // (see 7.1.3.1), return NaN. in ParseFloat() 220 // 6. If x is NaN, return the String "NaN". in ToExponential() 222 return GetTaggedString(thread, "NaN"); in ToExponential() 274 // 6. If x is NaN, return the String "NaN". in ToFixed() 355 // 6. If x is NaN, return the String "NaN". in ToPrecision() 358 return GetTaggedString(thread, "NaN"); in ToPrecision() [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/ets_runtime/test/aottest/builtinmath/ |
| D | expect_output.txt | 16 NaN 17 NaN 25 NaN 26 NaN 33 NaN 34 NaN
|
| D | builtinmath.ts | 24 print(NaN); 25 len = Math.sqrt(NaN); 46 len = Math.abs(Number.NaN); 48 len = Math.abs(-Number.NaN); 63 len = Math.floor(Number.NaN); 65 len = Math.floor(-Number.NaN);
|
| /arkcompiler/ets_runtime/test/aottest/mod/ |
| D | expect_output.txt | 17 NaN 18 NaN 21 NaN 22 NaN 23 NaN
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | fmod2.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f32 40 Check fmod2 results in NaN when acc or v0 is NaN 43 # NaN 46 # NaN representation 94 # NaN 97 # NaN 152 check-type: check-acc-nan-f32 160 description: Check fmod2 with positive Inf and various values (NaN, Inf, min, max, numbers). 163 # NaN [all …]
|
| D | fmod2.64.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f64 40 Check fmod2.64 results in NaN when acc or v0 is NaN 43 # NaN 46 # NaN representation 94 # NaN 97 # NaN 152 check-type: check-acc-nan-f64 160 … description: Check fmod2.64 with positive Inf and various values (NaN, Inf, min, max, numbers). 163 # NaN [all …]
|
| D | fdiv2.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f32 40 Check fdiv2 results in NaN when acc or v0 is NaN 43 # NaN 46 # NaN representation 100 # NaN 103 # NaN representation 173 description: Check fdiv2 with positive Inf and various values (NaN, Inf, min, max, numbers). 242 description: Check fdiv2 with negative Inf and various values (NaN, Inf, min, max, numbers). 303 Division is NaN if Infinity is divided by Infinity. [all …]
|
| D | fmul2.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f32 40 Check fmul2 results in NaN when acc or v0 is NaN 43 # NaN 46 # NaN representation 93 # NaN 96 # NaN 159 description: Check fmul2 with +Inf and various values (NaN, Inf, min, max, numbers). 225 description: Check fmul2 with -Inf and various values (NaN, Inf, min, max, numbers). 291 description: Check fmul2 with +0 and various values (NaN, Inf, min, max, numbers). [all …]
|
| D | fdiv2.64.yaml | 31 description: Any operation with NaN results to NaN value. 33 check-type: check-acc-nan-f64 40 Check fdiv2.64 results in NaN when acc or v0 is NaN 43 # NaN 46 # NaN representation 100 # NaN 103 # NaN representation 173 … description: Check fdiv2.64 with positive Inf and various values (NaN, Inf, min, max, numbers). 242 … description: Check fdiv2.64 with negative Inf and various values (NaN, Inf, min, max, numbers). 303 Division is NaN if Infinity is divided by Infinity. [all …]
|
| D | fmul2.64.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f64 40 Check fmul2.64 results in NaN when acc or v0 is NaN 43 # NaN 46 # NaN representation 93 # NaN 96 # NaN 159 description: Check fmul2.64 with +Inf and various values (NaN, Inf, min, max, numbers). 225 description: Check fmul2.64 with -Inf and various values (NaN, Inf, min, max, numbers). 291 description: Check fmul2.64 with +0 and various values (NaN, Inf, min, max, numbers). [all …]
|
| D | fsub2.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f32 40 Check fsub2 results in NaN when acc or v0 is NaN 43 # NaN 46 # NaN representation 92 # NaN 95 # NaN 161 description: Check fsub2 with positive Inf and various values (NaN, Inf, min, max, numbers). 223 description: Check fsub2 with negative Inf and various values (NaN, Inf, min, max, numbers). 282 The sum of opposite infinities or the difference of the same sign infinities is NaN. [all …]
|
| D | fsub2.64.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f64 40 Check fsub2.64 results in NaN when acc or v0 is NaN 43 # NaN 46 # NaN representation 92 # NaN 95 # NaN 161 … description: Check fsub2.64 with positive Inf and various values (NaN, Inf, min, max, numbers). 223 … description: Check fsub2.64 with negative Inf and various values (NaN, Inf, min, max, numbers). 282 The sum of opposite infinities or the difference of the same sign infinities is NaN. [all …]
|
| D | fneg.yaml | 66 - file-name: 'nan' 74 check-type: check-acc-nan-f32 79 description: Check fneg with NaN. 82 # NaN 85 # NaN
|
| D | fneg.64.yaml | 65 - file-name: 'nan' 71 check-type: check-acc-nan-f64 77 description: Check fneg.64 with NaN. 80 # NaN 83 # NaN
|
| D | fcmpg.yaml | 52 - file-name: nan 59 description: Check fcmpg compares NaN values. 62 # test - check binary representation and comparison of FP literals - NaN 83 description: Check fcmpg compares NaN with +Inf 87 description: Check fcmpg compares NaN with -Inf 96 description: Check fcmpg compares NaN with various values. 99 # test - check comparison of NaN with values 100 fldai 0x7fc00000 # One of valid NaN values
|
| D | fcmpl.yaml | 52 - file-name: nan 61 # test - check binary representation and comparison of FP literals - NaN 66 description: Check fcmpl compares NaN values. 83 description: Check fcmpl compares NaN with +Inf 87 description: Check fcmpl compares NaN with -Inf 97 description: Check fcmpl compares NaN with various values. 99 # test - check comparison of NaN with values 100 fldai 0x7fc00000 # One of valid NaN values
|
| D | fcmpg.64.yaml | 51 - file-name: nan 57 description: Check fcmpg.64 compares NaN values. 60 # test - check binary representation and comparison of FP literals - NaN 81 description: Check fcmpg.64 compares NaN with +Inf 85 description: Check fcmpg.64 compares NaN with -Inf 93 description: Check fcmpg.64 compares NaN with various values. 96 # test - check comparison of NaN with values 97 fldai.64 0x7ff8000000000000 # One of valid NaN values
|
| D | fadd2.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f32 38 # Sum of any value and NaN is NaN 41 Check fadd2 results in NaN when acc or v0 is NaN 44 # NaN 47 # NaN representation 101 # NaN 104 # NaN representation 310 The sum of opposite infinities or the difference of the same sign infinities is NaN. 311 check-type: check-acc-nan-f32 [all …]
|
| D | template.yaml | 55 - name: check-acc-nan-f64 57 # check acc contains NaN 61 # NaN != NaN 68 - name: check-acc-nan-f32 70 # check acc contains NaN 74 # NaN != NaN
|
| D | fadd2.64.yaml | 31 description: Any operation with NaN results to NaN value. 32 check-type: check-acc-nan-f64 38 # Sum of any value and NaN is NaN 41 Check fadd2.64 results in NaN when acc or v0 is NaN 44 # NaN 47 # NaN representation 101 # NaN 104 # NaN representation 310 The sum of opposite infinities or the difference of the same sign infinities is NaN. 311 check-type: check-acc-nan-f64 [all …]
|
| D | fcmpl.64.yaml | 59 # test - check binary representation and comparison of FP literals - NaN 64 description: Check fcmpl.64 compares NaN values. 81 description: Check fcmpl.64 compares NaN with +Inf 85 description: Check fcmpl.64 compares NaN with -Inf 93 description: Check fcmpl.64 compares NaN with various values. 96 # test - check comparison of NaN with values 97 fldai.64 0x7ff8000000000000 # One of valid NaN values
|
| /arkcompiler/ets_runtime/test/aottest/undefined/ |
| D | expect_output.txt | 14 NaN 15 NaN 16 NaN 17 NaN
|
| /arkcompiler/ets_runtime/test/aottest/call_default_args/ |
| D | expect_output.txt | 14 NaN 15 NaN
|