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 cbea5fec06e6f07b79e8fe623f03fe095e2e77a6..257569bf6d973210ef213c83d53982074ad090cd 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -5384,6 +5384,15 @@ TEST(RunBitcastFloat64ToInt64) { |
CHECK_EQ(expected, output); |
} |
} |
+ |
+ |
+TEST(RunRoundInt64ToFloat64) { |
+ BufferedRawMachineAssemblerTester<double> m(kMachInt64); |
+ m.Return(m.RoundInt64ToFloat64(m.Parameter(0))); |
+ FOR_INT64_INPUTS(i) { CHECK_EQ(static_cast<double>(*i), m.Call(*i)); } |
+} |
+ |
+ |
#endif |