blob: 7a845dcab4075d82ffc4f1d9af85090e6b1066e3 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function f(a,b) {
var result = 0;
for (var i = 0; i < 1000; i++)
result = (result + Math.imul(a,b)) | 0
return result;
}
var result = 0;
for (var i = 0.5; i < 1000; i++)
result = result ^ f(i, i);
if (result != 574687104)
throw "Bad result: " + result;