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

Unified Diff: test/unittests/base/ieee754-unittest.cc

Issue 2070813002: Revert of [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « test/cctest/compiler/test-run-machops.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/base/ieee754-unittest.cc
diff --git a/test/unittests/base/ieee754-unittest.cc b/test/unittests/base/ieee754-unittest.cc
index 7246ece3459f45ae092b9a79f2a554a41cb542e1..8ee69ec2661dad0c5b5c991a90a8863a642def45 100644
--- a/test/unittests/base/ieee754-unittest.cc
+++ b/test/unittests/base/ieee754-unittest.cc
@@ -52,23 +52,6 @@
EXPECT_DOUBLE_EQ(-2.356194490192345,
atan2(-std::numeric_limits<double>::infinity(),
-std::numeric_limits<double>::infinity()));
-}
-
-TEST(Ieee754, Exp) {
- EXPECT_THAT(exp(std::numeric_limits<double>::quiet_NaN()), IsNaN());
- EXPECT_THAT(exp(std::numeric_limits<double>::signaling_NaN()), IsNaN());
- EXPECT_EQ(0.0, exp(-std::numeric_limits<double>::infinity()));
- EXPECT_EQ(std::numeric_limits<double>::infinity(),
- exp(std::numeric_limits<double>::infinity()));
- EXPECT_EQ(3.307553003638408e-308, exp(-708.0));
- EXPECT_EQ(2.2250738585072626e-308, exp(-708.39641853226408));
- EXPECT_EQ(0.36787944117144233, exp(-1.0));
- EXPECT_EQ(1.0, exp(-0.0));
- EXPECT_EQ(1.0, exp(0.0));
- EXPECT_EQ(2.7182818284590455, exp(1.0));
- EXPECT_EQ(2.6881171418161356e+43, exp(100.0));
- EXPECT_EQ(8.218407461554972e+307, exp(709.0));
- EXPECT_EQ(std::numeric_limits<double>::infinity(), exp(710.0));
}
TEST(Ieee754, Log) {
« no previous file with comments | « test/cctest/compiler/test-run-machops.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698