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

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

Issue 2135243004: [test] Change or replace unrepresentable number in the lists of float test values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add first float after and last float before INT32_MIN Created 4 years, 5 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 | « no previous file | no next file » | 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 22982b8ac64d283edf9b3fc9c6426f4b6a330b18..cdc7e658cb068fcf903f102dd65250176f361146 100644
--- a/test/cctest/compiler/value-helper.h
+++ b/test/cctest/compiler/value-helper.h
@@ -82,8 +82,9 @@ class ValueHelper {
-4.66622e+11f,
-2.22581e+11f,
-1.45381e+10f,
- -2147483649.0f, // INT32_MIN - 1
+ -2147483904.0f, // First float32 after INT32_MIN
-2147483648.0f, // INT32_MIN
+ -2147483520.0f, // Last float32 before INT32_MIN
-1.3956e+09f,
-1.32951e+09f,
-1.30721e+09f,
@@ -158,8 +159,8 @@ class ValueHelper {
1.51116e+11f,
4.18193e+13f,
3.59167e+16f,
- 9223372036854775807.0f, // INT64_MAX
- 18446744073709551615.0f, // UINT64_MAX
+ 9223372036854775808.0f, // INT64_MAX + 1
+ 18446744073709551616.0f, // UINT64_MAX + 1
3.38211e+19f,
2.67488e+20f,
1.78831e+21f,
@@ -224,9 +225,9 @@ class ValueHelper {
2147483648.0,
2147483648.25,
2147483649.25,
- 9223372036854775807.0, // INT64_MAX
+ 9223372036854775808.0, // INT64_MAX + 1
9223373136366403584.0,
- 18446744073709551615.0, // UINT64_MAX
+ 18446744073709551616.0, // UINT64_MAX + 1
2e66,
V8_INFINITY,
-V8_INFINITY,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698