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 9b43fe3f305c0e963ad2639ed0160c2402e22a08..a1bb341cadbc8e1777ca61b28fbcb0696d0853fa 100644 |
--- a/test/unittests/compiler/int64-lowering-unittest.cc |
+++ b/test/unittests/compiler/int64-lowering-unittest.cc |
@@ -356,6 +356,23 @@ TEST_F(Int64LoweringTest, Int64Xor) { |
start(), start())); |
} |
// kExprI64Shl: |
+TEST_F(Int64LoweringTest, Int64Shl) { |
+ if (4 != kPointerSize) return; |
+ |
+ LowerGraph(graph()->NewNode(machine()->Word64Shl(), Int64Constant(value(0)), |
+ Int64Constant(value(1))), |
+ MachineRepresentation::kWord64); |
+ |
+ Capture<Node*> shl; |
+ Matcher<Node*> shl_matcher = IsWord32PairShl( |
+ IsInt32Constant(low_word_value(0)), IsInt32Constant(high_word_value(0)), |
+ IsInt32Constant(low_word_value(1))); |
+ |
+ EXPECT_THAT(graph()->end()->InputAt(1), |
+ IsReturn2(IsProjection(0, AllOf(CaptureEq(&shl), shl_matcher)), |
+ IsProjection(1, AllOf(CaptureEq(&shl), shl_matcher)), |
+ start(), start())); |
+} |
// kExprI64ShrU: |
// kExprI64ShrS: |
// kExprI64Eq: |