Index: test/unittests/compiler/js-typed-lowering-unittest.cc |
diff --git a/test/unittests/compiler/js-typed-lowering-unittest.cc b/test/unittests/compiler/js-typed-lowering-unittest.cc |
index d61a1817b21e00bba60d15a96909af2400431ba3..4fb4b2422be33b31d4f81e08d8d8c3d1c0711fb6 100644 |
--- a/test/unittests/compiler/js-typed-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-typed-lowering-unittest.cc |
@@ -119,6 +119,16 @@ TEST_F(JSTypedLoweringTest, JSUnaryNotWithBoolean) { |
} |
+TEST_F(JSTypedLoweringTest, JSUnaryNotWithOrderedNumber) { |
+ Node* input = Parameter(Type::OrderedNumber(), 0); |
+ Node* context = Parameter(Type::Any(), 1); |
+ Reduction r = |
+ Reduce(graph()->NewNode(javascript()->UnaryNot(), input, context)); |
+ ASSERT_TRUE(r.Changed()); |
+ EXPECT_THAT(r.replacement(), IsNumberEqual(input, IsNumberConstant(0))); |
+} |
+ |
+ |
TEST_F(JSTypedLoweringTest, JSUnaryNotWithFalsish) { |
Node* input = Parameter( |
Type::Union( |