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 56f1c4f6fe038eeea5dd4fb7c2c529fa422c595d..f9487331166c2d7d26cc73c5cea0c3ac31525932 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -5195,6 +5195,15 @@ TEST(RunFloat64RoundUp) { |
} |
+TEST(RunFloat32RoundTiesEven) { |
+ BufferedRawMachineAssemblerTester<float> m(kMachFloat32); |
+ if (!m.machine()->Float32RoundTiesEven().IsSupported()) return; |
+ m.Return(m.Float32RoundTiesEven(m.Parameter(0))); |
+ |
+ FOR_FLOAT32_INPUTS(i) { CheckFloatEq(nearbyint(*i), m.Call(*i)); } |
+} |
+ |
+ |
TEST(RunFloat64RoundTiesEven) { |
BufferedRawMachineAssemblerTester<double> m(kMachFloat64); |
if (!m.machine()->Float64RoundTiesEven().IsSupported()) return; |