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

Unified Diff: test/compiler-unittests/machine-operator-unittest.cc

Issue 484103002: [turbofan] Add TruncateFloat64ToInt32 machine operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Disable test-run-machops/RunTruncateFloat64ToInt32P on arm64. Created 6 years, 4 months 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 | « test/compiler-unittests/instruction-selector-unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/compiler-unittests/machine-operator-unittest.cc
diff --git a/test/compiler-unittests/machine-operator-unittest.cc b/test/compiler-unittests/machine-operator-unittest.cc
index d09665895d5c0896371a270d621a0ab9c2125f31..84ffd341bea1877f249eaca494fdf4859ef10bbb 100644
--- a/test/compiler-unittests/machine-operator-unittest.cc
+++ b/test/compiler-unittests/machine-operator-unittest.cc
@@ -57,6 +57,16 @@ TEST_P(MachineOperatorCommonTest, ChangeUint32ToUint64) {
}
+TEST_P(MachineOperatorCommonTest, TruncateFloat64ToInt32) {
+ Operator* op = machine()->TruncateFloat64ToInt32();
+ EXPECT_EQ(1, OperatorProperties::GetValueInputCount(op));
+ EXPECT_EQ(1, OperatorProperties::GetTotalInputCount(op));
+ EXPECT_EQ(0, OperatorProperties::GetControlOutputCount(op));
+ EXPECT_EQ(0, OperatorProperties::GetEffectOutputCount(op));
+ EXPECT_EQ(1, OperatorProperties::GetValueOutputCount(op));
+}
+
+
TEST_P(MachineOperatorCommonTest, TruncateInt64ToInt32) {
Operator* op = machine()->TruncateInt64ToInt32();
EXPECT_EQ(1, OperatorProperties::GetValueInputCount(op));
« no previous file with comments | « test/compiler-unittests/instruction-selector-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698