blob: c65d44745e55b54d797ff1cfe689c895bf06c77c [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
//@ runNoFTL
function foo(a, b) {
var c = a - b;
var d = a * b;
var e = a / b;
var f = a | b;
var g = a ^ b;
var h = a & b;
return c + d - e + f - g + h;
}
var result = 0;
for (var i = 0; i < 100000; ++i)
result ^= foo("42", i);
if (result != 3472169)
throw "Bad result: " + result;