haikuwebkit/LayoutTests/js/script-tests/dfg-mul-big-integer-with-sm...

14 lines
261 B
JavaScript

description(
"Tests what happens when you multiply a big unknown integer with a small known integer and use the result in a bitop."
);
function foo(a) {
return (a * 65536) | 0;
}
for (var i = 0; i < 100; ++i)
shouldBe("foo(2147483647)", "-65536");