Chromium Code Reviews| 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 | |
|
titzer
2016/07/12 09:08:12
Can you add a number which is one fup less than IN
ahaas
2016/07/12 09:35:28
Done.
| |
| 86 -2147483648.0f, // INT32_MIN | 85 -2147483648.0f, // INT32_MIN |
| 87 -1.3956e+09f, | 86 -1.3956e+09f, |
| 88 -1.32951e+09f, | 87 -1.32951e+09f, |
| 89 -1.30721e+09f, | 88 -1.30721e+09f, |
| 90 -1.19756e+09f, | 89 -1.19756e+09f, |
| 91 -9.26822e+08f, | 90 -9.26822e+08f, |
| 92 -6.35647e+08f, | 91 -6.35647e+08f, |
| 93 -4.00037e+08f, | 92 -4.00037e+08f, |
| 94 -1.81227e+08f, | 93 -1.81227e+08f, |
| 95 -5.09256e+07f, | 94 -5.09256e+07f, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 12611.0f, | 150 12611.0f, |
| 152 19878.0f, | 151 19878.0f, |
| 153 20309.0f, | 152 20309.0f, |
| 154 797056.0f, | 153 797056.0f, |
| 155 1.77219e+09f, | 154 1.77219e+09f, |
| 156 2147483648.0f, // INT32_MAX + 1 | 155 2147483648.0f, // INT32_MAX + 1 |
| 157 4294967296.0f, // UINT32_MAX + 1 | 156 4294967296.0f, // UINT32_MAX + 1 |
| 158 1.51116e+11f, | 157 1.51116e+11f, |
| 159 4.18193e+13f, | 158 4.18193e+13f, |
| 160 3.59167e+16f, | 159 3.59167e+16f, |
| 161 9223372036854775807.0f, // INT64_MAX | 160 9223372036854775808.0f, // INT64_MAX + 1 |
| 162 18446744073709551615.0f, // UINT64_MAX | 161 18446744073709551616.0f, // UINT64_MAX + 1 |
| 163 3.38211e+19f, | 162 3.38211e+19f, |
| 164 2.67488e+20f, | 163 2.67488e+20f, |
| 165 1.78831e+21f, | 164 1.78831e+21f, |
| 166 9.20914e+21f, | 165 9.20914e+21f, |
| 167 8.35654e+23f, | 166 8.35654e+23f, |
| 168 1.4495e+24f, | 167 1.4495e+24f, |
| 169 5.94015e+25f, | 168 5.94015e+25f, |
| 170 4.43608e+30f, | 169 4.43608e+30f, |
| 171 2.44502e+33f, | 170 2.44502e+33f, |
| 172 2.61152e+33f, | 171 2.61152e+33f, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 5.125, | 216 5.125, |
| 218 6.25, | 217 6.25, |
| 219 888, | 218 888, |
| 220 982983.25, | 219 982983.25, |
| 221 2147483647.0, | 220 2147483647.0, |
| 222 2147483647.375, | 221 2147483647.375, |
| 223 2147483647.75, | 222 2147483647.75, |
| 224 2147483648.0, | 223 2147483648.0, |
| 225 2147483648.25, | 224 2147483648.25, |
| 226 2147483649.25, | 225 2147483649.25, |
| 227 9223372036854775807.0, // INT64_MAX | 226 9223372036854775808.0, // INT64_MAX + 1 |
| 228 9223373136366403584.0, | 227 9223373136366403584.0, |
| 229 18446744073709551615.0, // UINT64_MAX | 228 18446744073709551616.0, // UINT64_MAX + 1 |
| 230 2e66, | 229 2e66, |
| 231 V8_INFINITY, | 230 V8_INFINITY, |
| 232 -V8_INFINITY, | 231 -V8_INFINITY, |
| 233 -nan, | 232 -nan, |
| 234 nan}; | 233 nan}; |
| 235 return std::vector<double>(&values[0], &values[arraysize(values)]); | 234 return std::vector<double>(&values[0], &values[arraysize(values)]); |
| 236 } | 235 } |
| 237 | 236 |
| 238 static const std::vector<int32_t> int32_vector() { | 237 static const std::vector<int32_t> int32_vector() { |
| 239 std::vector<uint32_t> values = uint32_vector(); | 238 std::vector<uint32_t> values = uint32_vector(); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 352 do { \ | 351 do { \ |
| 353 volatile double tmp = lhs; \ | 352 volatile double tmp = lhs; \ |
| 354 CheckDoubleEq(tmp, rhs); \ | 353 CheckDoubleEq(tmp, rhs); \ |
| 355 } while (0) | 354 } while (0) |
| 356 | 355 |
| 357 } // namespace compiler | 356 } // namespace compiler |
| 358 } // namespace internal | 357 } // namespace internal |
| 359 } // namespace v8 | 358 } // namespace v8 |
| 360 | 359 |
| 361 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 360 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
| OLD | NEW |