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

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

Issue 1593313010: Revert of [turbofan] Implement rounding of floats on x64 and ia32 without sse4.1. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months 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
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/cctest/wasm/test-run-wasm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/value-helper.h
diff --git a/test/cctest/compiler/value-helper.h b/test/cctest/compiler/value-helper.h
index d36124c02488254c3957252c6b5a677470c2be31..cbde9a741748bde94979345d87fc57b2b3796b16 100644
--- a/test/cctest/compiler/value-helper.h
+++ b/test/cctest/compiler/value-helper.h
@@ -176,36 +176,49 @@
static std::vector<double> float64_vector() {
static const double nan = std::numeric_limits<double>::quiet_NaN();
- static const double values[] = {
- -2e66,
- -162259276829213363391578010288128.0, // 2^107
- -81129638414606681695789005144064.0, // 2^106
- -40564819207303349855093757313024.0, // 2^105
- -40564819207303340847894502572032.0, -9223373136366403584.75,
- -9223373136366403584.5, -9223373136366403584.25, -9223373136366403584.0,
- -9223372036854775808.0, // INT64_MIN
- -4503599627370497.5,
- -4503599627370496.5, // -2^52 - 0.5
- -4503599627370495.5,
- -2251799813685248.5, // 2^51 + 0.5
- -34359738368.75, -34359738368.5, -34359738368.25,
- -4294967295.0, // -2^32 + 1.0
- -2147483649.5, -2147483648.25, -2147483648.0, -2147483647.875,
- -2147483647.125, -2147483647.0, -999.75, -1.75, -1.0, -0.5, -0.0, 0.0,
- 3e-88, 0.125, 0.25, 0.375, 0.5, 1.0, 1.25, 2, 3.1e7, 5.125, 6.25, 888,
- 982983.25, 2147483647.0, 2147483647.375, 2147483647.75, 2147483648.0,
- 2147483648.25, 2147483649.25,
- 4294967295.0, // +2^32 + 1.0
- 34359738368.75, 34359738368.5, 34359738368.25,
- 2251799813685248.5, // 2^51 + 0.5
- 4503599627370495.5,
- 4503599627370496.5, // 2^52 + 0.5
- 4503599627370497.5,
- 9223372036854775807.0, // INT64_MAX
- 9223373136366403584.0,
- 18446744073709551615.0, // UINT64_MAX
- // 81129638414606681695789005144064.0,
- 2e66, V8_INFINITY, -V8_INFINITY, -nan, nan};
+ static const double values[] = {-2e66,
+ -9223373136366403584.0,
+ -9223372036854775808.0, // INT64_MIN
+ -2147483649.5,
+ -2147483648.25,
+ -2147483648.0,
+ -2147483647.875,
+ -2147483647.125,
+ -2147483647.0,
+ -999.75,
+ -2e66,
+ -1.75,
+ -1.0,
+ -0.5,
+ -0.0,
+ 0.0,
+ 3e-88,
+ 0.125,
+ 0.25,
+ 0.375,
+ 0.5,
+ 1.0,
+ 1.25,
+ 2,
+ 3.1e7,
+ 5.125,
+ 6.25,
+ 888,
+ 982983.25,
+ 2147483647.0,
+ 2147483647.375,
+ 2147483647.75,
+ 2147483648.0,
+ 2147483648.25,
+ 2147483649.25,
+ 9223372036854775807.0, // INT64_MAX
+ 9223373136366403584.0,
+ 18446744073709551615.0, // UINT64_MAX
+ 2e66,
+ V8_INFINITY,
+ -V8_INFINITY,
+ -nan,
+ nan};
return std::vector<double>(&values[0], &values[arraysize(values)]);
}
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/cctest/wasm/test-run-wasm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698