blob: 3954e1f3f7c6e945e069a254b68d9f93178dad4b [file] [log] [blame]
description(
"Tests that the (x/-1)|0 case in the DFG is handled correctly even when there is some interesting register allocation going on."
);
function foo(c, d, a, b) {
return (c + d) + ((a / b) | 0);
}
silentTestPass = true;
noInline(foo);
for (var i = 0; i < 100; i = dfgIncrement({f:foo, i:i + 1, n:50}))
shouldBe("foo(0, 0, " + i + ", -1)", (i ? "-" : "") + i);