Home
last modified time | relevance | path

Searched full:nan (Results 1 – 25 of 146) sorted by relevance

123456

/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_math.cpp38 // 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 …]
Dbuiltins_number.cpp80 // 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/
Dfcmp.pa18 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/
Dexpect_output.txt16 NaN
17 NaN
25 NaN
26 NaN
33 NaN
34 NaN
Dbuiltinmath.ts24 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/
Dexpect_output.txt17 NaN
18 NaN
21 NaN
22 NaN
23 NaN
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dfmod2.yaml31 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 …]
Dfmod2.64.yaml31 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 …]
Dfdiv2.yaml31 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 …]
Dfmul2.yaml31 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 …]
Dfdiv2.64.yaml31 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 …]
Dfmul2.64.yaml31 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 …]
Dfsub2.yaml31 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 …]
Dfsub2.64.yaml31 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 …]
Dfneg.yaml66 - file-name: 'nan'
74 check-type: check-acc-nan-f32
79 description: Check fneg with NaN.
82 # NaN
85 # NaN
Dfneg.64.yaml65 - file-name: 'nan'
71 check-type: check-acc-nan-f64
77 description: Check fneg.64 with NaN.
80 # NaN
83 # NaN
Dfcmpg.yaml52 - 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
Dfcmpl.yaml52 - 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
Dfcmpg.64.yaml51 - 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
Dfadd2.yaml31 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 …]
Dtemplate.yaml55 - 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
Dfadd2.64.yaml31 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 …]
Dfcmpl.64.yaml59 # 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/
Dexpect_output.txt14 NaN
15 NaN
16 NaN
17 NaN
/arkcompiler/ets_runtime/test/aottest/call_default_args/
Dexpect_output.txt14 NaN
15 NaN

123456