| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 5 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
| 6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 -1.46821e+25f, | 75 -1.46821e+25f, |
| 76 -1.17658e+23f, | 76 -1.17658e+23f, |
| 77 -1.9617e+22f, | 77 -1.9617e+22f, |
| 78 -2.7357e+20f, | 78 -2.7357e+20f, |
| 79 -9223372036854775808.0f, // INT64_MIN | 79 -9223372036854775808.0f, // INT64_MIN |
| 80 -1.48708e+13f, | 80 -1.48708e+13f, |
| 81 -1.89633e+12f, | 81 -1.89633e+12f, |
| 82 -4.66622e+11f, | 82 -4.66622e+11f, |
| 83 -2.22581e+11f, | 83 -2.22581e+11f, |
| 84 -1.45381e+10f, | 84 -1.45381e+10f, |
| 85 -2147483649.0f, // INT32_MIN - 1 | 85 -2147483904.0f, // First float32 after INT32_MIN |
| 86 -2147483648.0f, // INT32_MIN | 86 -2147483648.0f, // INT32_MIN |
| 87 -2147483520.0f, // Last float32 before INT32_MIN |
| 87 -1.3956e+09f, | 88 -1.3956e+09f, |
| 88 -1.32951e+09f, | 89 -1.32951e+09f, |
| 89 -1.30721e+09f, | 90 -1.30721e+09f, |
| 90 -1.19756e+09f, | 91 -1.19756e+09f, |
| 91 -9.26822e+08f, | 92 -9.26822e+08f, |
| 92 -6.35647e+08f, | 93 -6.35647e+08f, |
| 93 -4.00037e+08f, | 94 -4.00037e+08f, |
| 94 -1.81227e+08f, | 95 -1.81227e+08f, |
| 95 -5.09256e+07f, | 96 -5.09256e+07f, |
| 96 -964300.0f, | 97 -964300.0f, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 12611.0f, | 152 12611.0f, |
| 152 19878.0f, | 153 19878.0f, |
| 153 20309.0f, | 154 20309.0f, |
| 154 797056.0f, | 155 797056.0f, |
| 155 1.77219e+09f, | 156 1.77219e+09f, |
| 156 2147483648.0f, // INT32_MAX + 1 | 157 2147483648.0f, // INT32_MAX + 1 |
| 157 4294967296.0f, // UINT32_MAX + 1 | 158 4294967296.0f, // UINT32_MAX + 1 |
| 158 1.51116e+11f, | 159 1.51116e+11f, |
| 159 4.18193e+13f, | 160 4.18193e+13f, |
| 160 3.59167e+16f, | 161 3.59167e+16f, |
| 161 9223372036854775807.0f, // INT64_MAX | 162 9223372036854775808.0f, // INT64_MAX + 1 |
| 162 18446744073709551615.0f, // UINT64_MAX | 163 18446744073709551616.0f, // UINT64_MAX + 1 |
| 163 3.38211e+19f, | 164 3.38211e+19f, |
| 164 2.67488e+20f, | 165 2.67488e+20f, |
| 165 1.78831e+21f, | 166 1.78831e+21f, |
| 166 9.20914e+21f, | 167 9.20914e+21f, |
| 167 8.35654e+23f, | 168 8.35654e+23f, |
| 168 1.4495e+24f, | 169 1.4495e+24f, |
| 169 5.94015e+25f, | 170 5.94015e+25f, |
| 170 4.43608e+30f, | 171 4.43608e+30f, |
| 171 2.44502e+33f, | 172 2.44502e+33f, |
| 172 2.61152e+33f, | 173 2.61152e+33f, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 5.125, | 218 5.125, |
| 218 6.25, | 219 6.25, |
| 219 888, | 220 888, |
| 220 982983.25, | 221 982983.25, |
| 221 2147483647.0, | 222 2147483647.0, |
| 222 2147483647.375, | 223 2147483647.375, |
| 223 2147483647.75, | 224 2147483647.75, |
| 224 2147483648.0, | 225 2147483648.0, |
| 225 2147483648.25, | 226 2147483648.25, |
| 226 2147483649.25, | 227 2147483649.25, |
| 227 9223372036854775807.0, // INT64_MAX | 228 9223372036854775808.0, // INT64_MAX + 1 |
| 228 9223373136366403584.0, | 229 9223373136366403584.0, |
| 229 18446744073709551615.0, // UINT64_MAX | 230 18446744073709551616.0, // UINT64_MAX + 1 |
| 230 2e66, | 231 2e66, |
| 231 V8_INFINITY, | 232 V8_INFINITY, |
| 232 -V8_INFINITY, | 233 -V8_INFINITY, |
| 233 -nan, | 234 -nan, |
| 234 nan}; | 235 nan}; |
| 235 return std::vector<double>(&values[0], &values[arraysize(values)]); | 236 return std::vector<double>(&values[0], &values[arraysize(values)]); |
| 236 } | 237 } |
| 237 | 238 |
| 238 static const std::vector<int32_t> int32_vector() { | 239 static const std::vector<int32_t> int32_vector() { |
| 239 std::vector<uint32_t> values = uint32_vector(); | 240 std::vector<uint32_t> values = uint32_vector(); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 do { \ | 353 do { \ |
| 353 volatile double tmp = lhs; \ | 354 volatile double tmp = lhs; \ |
| 354 CheckDoubleEq(tmp, rhs); \ | 355 CheckDoubleEq(tmp, rhs); \ |
| 355 } while (0) | 356 } while (0) |
| 356 | 357 |
| 357 } // namespace compiler | 358 } // namespace compiler |
| 358 } // namespace internal | 359 } // namespace internal |
| 359 } // namespace v8 | 360 } // namespace v8 |
| 360 | 361 |
| 361 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 362 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
| OLD | NEW |