Index: test/cctest/compiler/test-code-stub-assembler.cc |
diff --git a/test/cctest/compiler/test-code-stub-assembler.cc b/test/cctest/compiler/test-code-stub-assembler.cc |
index fe8dd93b8213bb715ede6840646b4e229ea75999..58f4dece2aa28c91d90f5c0577cb3784591804e3 100644 |
--- a/test/cctest/compiler/test-code-stub-assembler.cc |
+++ b/test/cctest/compiler/test-code-stub-assembler.cc |
@@ -75,12 +75,12 @@ TEST(SimpleCallRuntime1Arg) { |
VoidDescriptor descriptor(isolate); |
CodeStubAssemblerTester m(isolate, descriptor); |
Node* context = m.HeapConstant(Handle<Context>(isolate->native_context())); |
- Node* b = m.SmiTag(m.Int32Constant(256)); |
- m.Return(m.CallRuntime(Runtime::kRoundNumber, context, b)); |
+ Node* b = m.SmiTag(m.Int32Constant(-1)); |
+ m.Return(m.CallRuntime(Runtime::kMathClz32, context, b)); |
Handle<Code> code = m.GenerateCode(); |
FunctionTester ft(descriptor, code); |
MaybeHandle<Object> result = ft.Call(); |
- CHECK_EQ(256, Handle<Smi>::cast(result.ToHandleChecked())->value()); |
+ CHECK_EQ(0, Handle<Smi>::cast(result.ToHandleChecked())->value()); |
} |
@@ -89,12 +89,12 @@ TEST(SimpleTailCallRuntime1Arg) { |
VoidDescriptor descriptor(isolate); |
CodeStubAssemblerTester m(isolate, descriptor); |
Node* context = m.HeapConstant(Handle<Context>(isolate->native_context())); |
- Node* b = m.SmiTag(m.Int32Constant(256)); |
- m.TailCallRuntime(Runtime::kRoundNumber, context, b); |
+ Node* b = m.SmiTag(m.Int32Constant(-1)); |
+ m.TailCallRuntime(Runtime::kMathClz32, context, b); |
Handle<Code> code = m.GenerateCode(); |
FunctionTester ft(descriptor, code); |
MaybeHandle<Object> result = ft.Call(); |
- CHECK_EQ(256, Handle<Smi>::cast(result.ToHandleChecked())->value()); |
+ CHECK_EQ(0, Handle<Smi>::cast(result.ToHandleChecked())->value()); |
} |