Index: test/unittests/compiler/change-lowering-unittest.cc |
diff --git a/test/unittests/compiler/change-lowering-unittest.cc b/test/unittests/compiler/change-lowering-unittest.cc |
index 060b1c1842fb663a1a598923297cc5c962e29599..82e262f401a80a135386d6e9ecdc1200468734d0 100644 |
--- a/test/unittests/compiler/change-lowering-unittest.cc |
+++ b/test/unittests/compiler/change-lowering-unittest.cc |
@@ -132,11 +132,32 @@ TARGET_TEST_P(ChangeLoweringCommonTest, ChangeBoolToBit) { |
Node* node = graph()->NewNode(simplified()->ChangeBoolToBit(), val); |
Reduction reduction = Reduce(node); |
ASSERT_TRUE(reduction.Changed()); |
- |
EXPECT_THAT(reduction.replacement(), IsWordEqual(val, IsTrueConstant())); |
} |
+TARGET_TEST_P(ChangeLoweringCommonTest, ChangeWord32ToBit) { |
+ Node* val = Parameter(0); |
+ Node* node = graph()->NewNode(simplified()->ChangeWord32ToBit(), val); |
+ Reduction reduction = Reduce(node); |
+ ASSERT_TRUE(reduction.Changed()); |
+ EXPECT_THAT(reduction.replacement(), |
+ IsWord32Equal(IsWord32Equal(val, IsInt32Constant(0)), |
+ IsInt32Constant(0))); |
+} |
+ |
+ |
+TARGET_TEST_P(ChangeLoweringCommonTest, ChangeWord64ToBit) { |
+ Node* val = Parameter(0); |
+ Node* node = graph()->NewNode(simplified()->ChangeWord64ToBit(), val); |
+ Reduction reduction = Reduce(node); |
+ ASSERT_TRUE(reduction.Changed()); |
+ EXPECT_THAT(reduction.replacement(), |
+ IsWord32Equal(IsWord64Equal(val, IsInt64Constant(0)), |
+ IsInt32Constant(0))); |
+} |
+ |
+ |
TARGET_TEST_P(ChangeLoweringCommonTest, ChangeFloat64ToTagged) { |
Node* val = Parameter(0); |
Node* node = graph()->NewNode(simplified()->ChangeFloat64ToTagged(), val); |