Index: test/cctest/compiler/test-run-machops.cc |
diff --git a/test/cctest/compiler/test-run-machops.cc b/test/cctest/compiler/test-run-machops.cc |
index a5052f33f0c9b3bf48a8f4ed48dfe254ff5c0d74..4ba78e1c654b7b85e6248d7619c8cde9f303a1f8 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -5176,6 +5176,15 @@ TEST(RunFloat64RoundUp) { |
} |
+TEST(RunFloat64RoundTiesEven) { |
+ BufferedRawMachineAssemblerTester<double> m(kMachFloat64); |
+ if (!m.machine()->Float64RoundTiesEven().IsSupported()) return; |
+ m.Return(m.Float64RoundTiesEven(m.Parameter(0))); |
+ |
+ FOR_FLOAT64_INPUTS(i) { CheckDoubleEq(nearbyint(*i), m.Call(*i)); } |
+} |
+ |
+ |
TEST(RunFloat64RoundTruncate) { |
BufferedRawMachineAssemblerTester<double> m(kMachFloat64); |
if (!m.machine()->Float64RoundTruncate().IsSupported()) return; |