Index: test/unittests/compiler/machine-operator-reducer-unittest.cc |
diff --git a/test/unittests/compiler/machine-operator-reducer-unittest.cc b/test/unittests/compiler/machine-operator-reducer-unittest.cc |
index 05156edde1bffb282bccb1571e09cf34965530e1..312aca003f5c198fdf492d3501845c7a6ebbd11d 100644 |
--- a/test/unittests/compiler/machine-operator-reducer-unittest.cc |
+++ b/test/unittests/compiler/machine-operator-reducer-unittest.cc |
@@ -1485,6 +1485,20 @@ TEST_F(MachineOperatorReducerTest, Float64CosWithConstant) { |
} |
// ----------------------------------------------------------------------------- |
+// Float64Cosh |
+ |
+TEST_F(MachineOperatorReducerTest, Float64CoshWithConstant) { |
+ TRACED_FOREACH(double, x, kFloat64Values) { |
+ Reduction const r = |
+ Reduce(graph()->NewNode(machine()->Float64Cosh(), Float64Constant(x))); |
+ ASSERT_TRUE(r.Changed()); |
+ EXPECT_THAT( |
+ r.replacement(), |
+ IsFloat64Constant(NanSensitiveDoubleEq(base::ieee754::cosh(x)))); |
+ } |
+} |
+ |
+// ----------------------------------------------------------------------------- |
// Float64Exp |
TEST_F(MachineOperatorReducerTest, Float64ExpWithConstant) { |
@@ -1538,6 +1552,20 @@ TEST_F(MachineOperatorReducerTest, Float64SinWithConstant) { |
} |
// ----------------------------------------------------------------------------- |
+// Float64Sinh |
+ |
+TEST_F(MachineOperatorReducerTest, Float64SinhWithConstant) { |
+ TRACED_FOREACH(double, x, kFloat64Values) { |
+ Reduction const r = |
+ Reduce(graph()->NewNode(machine()->Float64Sinh(), Float64Constant(x))); |
+ ASSERT_TRUE(r.Changed()); |
+ EXPECT_THAT( |
+ r.replacement(), |
+ IsFloat64Constant(NanSensitiveDoubleEq(base::ieee754::sinh(x)))); |
+ } |
+} |
+ |
+// ----------------------------------------------------------------------------- |
// Float64Tan |
TEST_F(MachineOperatorReducerTest, Float64TanWithConstant) { |
@@ -1551,6 +1579,20 @@ TEST_F(MachineOperatorReducerTest, Float64TanWithConstant) { |
} |
// ----------------------------------------------------------------------------- |
+// Float64Tanh |
+ |
+TEST_F(MachineOperatorReducerTest, Float64TanhWithConstant) { |
+ TRACED_FOREACH(double, x, kFloat64Values) { |
+ Reduction const r = |
+ Reduce(graph()->NewNode(machine()->Float64Tanh(), Float64Constant(x))); |
+ ASSERT_TRUE(r.Changed()); |
+ EXPECT_THAT( |
+ r.replacement(), |
+ IsFloat64Constant(NanSensitiveDoubleEq(base::ieee754::tanh(x)))); |
+ } |
+} |
+ |
+// ----------------------------------------------------------------------------- |
// Float64InsertLowWord32 |
TEST_F(MachineOperatorReducerTest, Float64InsertLowWord32WithConstant) { |