Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: test/cctest/compiler/value-helper.h

Issue 1526293002: [turbofan] Fixed a bug in TryTruncateFloatXXToInt64 with INT64_MIN. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/compiler/value-helper.h
diff --git a/test/cctest/compiler/value-helper.h b/test/cctest/compiler/value-helper.h
index d835ffd0d55d76ab0d2f92faf9af864f58402f1f..ee6b1001f28038b6aea00886a4745b7c63cf9c9f 100644
--- a/test/cctest/compiler/value-helper.h
+++ b/test/cctest/compiler/value-helper.h
@@ -73,6 +73,7 @@ class ValueHelper {
-1.17658e+23f,
-1.9617e+22f,
-2.7357e+20f,
+ -9223372036854775808.0f,
Michael Starzinger 2015/12/16 13:01:29 nit: Placement looks random, can we move it up or
-1.48708e+13f,
-1.89633e+12f,
-4.66622e+11f,
@@ -167,41 +168,45 @@ class ValueHelper {
static std::vector<double> float64_vector() {
static const double nan = std::numeric_limits<double>::quiet_NaN();
- static const double values[] = {0.125,
- 0.25,
- 0.375,
- 0.5,
- -0.5,
- 1.25,
- -1.75,
- 2,
- 5.125,
- 6.25,
- 0.0,
- -0.0,
- 982983.25,
- 888,
- 2147483647.0,
- -999.75,
- 3.1e7,
- -2e66,
- 2e66,
- 3e-88,
- -2147483648.0,
- V8_INFINITY,
- -V8_INFINITY,
- -nan,
- nan,
- 2147483647.375,
- 2147483647.75,
- 2147483648.0,
- 2147483648.25,
- 2147483649.25,
- -2147483647.0,
- -2147483647.125,
- -2147483647.875,
- -2147483648.25,
- -2147483649.5};
+ static const double values[] = {
+ 0.125,
+ 0.25,
+ 0.375,
+ 0.5,
+ -0.5,
+ 1.25,
+ -1.75,
+ 2,
+ 5.125,
+ 6.25,
+ 0.0,
+ -0.0,
+ 982983.25,
+ 888,
+ 2147483647.0,
+ -999.75,
+ 3.1e7,
+ -2e66,
+ 2e66,
+ 3e-88,
+ -2147483648.0,
+ V8_INFINITY,
+ -V8_INFINITY,
+ -nan,
+ nan,
+ 2147483647.375,
+ 2147483647.75,
+ 2147483648.0,
+ 2147483648.25,
+ 2147483649.25,
+ -2147483647.0,
+ -2147483647.125,
+ -2147483647.875,
+ -2147483648.25,
+ -2147483649.5,
+ -9223373136366403584.0f,
+ -9223372036854775808.0f,
+ };
return std::vector<double>(&values[0], &values[arraysize(values)]);
}
« src/compiler/x64/code-generator-x64.cc ('K') | « test/cctest/compiler/test-run-machops.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698