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

Unified Diff: test/cctest/compiler/test-run-machops.cc

Issue 1435603003: Implemented the RoundInt64ToFloat32 TurboFan operator for x64, arm64, and mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « src/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b7c978a747d76e8c6639b502e31f64a5164be84d..34231726137cd1159b5063d3a8ea5a8406bee11f 100644
--- a/test/cctest/compiler/test-run-machops.cc
+++ b/test/cctest/compiler/test-run-machops.cc
@@ -5348,6 +5348,13 @@ TEST(RunBitcastFloat64ToInt64) {
}
+TEST(RunRoundInt64ToFloat32) {
+ BufferedRawMachineAssemblerTester<float> m(kMachInt64);
+ m.Return(m.RoundInt64ToFloat32(m.Parameter(0)));
+ FOR_INT64_INPUTS(i) { CHECK_EQ(static_cast<float>(*i), m.Call(*i)); }
+}
+
+
TEST(RunRoundInt64ToFloat64) {
BufferedRawMachineAssemblerTester<double> m(kMachInt64);
m.Return(m.RoundInt64ToFloat64(m.Parameter(0)));
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698