Index: test/unittests/compiler/int64-lowering-unittest.cc |
diff --git a/test/unittests/compiler/int64-lowering-unittest.cc b/test/unittests/compiler/int64-lowering-unittest.cc |
index 874488b476ab0b1409d4b8f72f83cdb92b54e668..1a35ab7a715bc0c2a0820d383fa2c03ac917c755 100644 |
--- a/test/unittests/compiler/int64-lowering-unittest.cc |
+++ b/test/unittests/compiler/int64-lowering-unittest.cc |
@@ -320,6 +320,22 @@ TEST_F(Int64LoweringTest, Int64Add) { |
start(), start())); |
} |
// kExprI64Sub: |
+TEST_F(Int64LoweringTest, Int64Sub) { |
+ LowerGraph(graph()->NewNode(machine()->Int64Sub(), Int64Constant(value(0)), |
+ Int64Constant(value(1))), |
+ MachineRepresentation::kWord64); |
+ |
+ Capture<Node*> sub; |
+ Matcher<Node*> sub_matcher = IsInt32PairSub( |
+ IsInt32Constant(low_word_value(0)), IsInt32Constant(high_word_value(0)), |
+ IsInt32Constant(low_word_value(1)), IsInt32Constant(high_word_value(1))); |
+ |
+ EXPECT_THAT(graph()->end()->InputAt(1), |
+ IsReturn2(IsProjection(0, AllOf(CaptureEq(&sub), sub_matcher)), |
+ IsProjection(1, AllOf(CaptureEq(&sub), sub_matcher)), |
+ start(), start())); |
+} |
+ |
// kExprI64Mul: |
// kExprI64DivS: |
// kExprI64DivU: |