summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/absd.js
blob: b0860965a9bacb0f2e2b7f8fcfb69cb40b43f908 (plain)
1
2
3
4
5
6
7
var do_abs = function(x) {
    return Math.abs(x);
}
var i;
for (i=0;i<50;i++)
    do_abs(-1.5);
assertEq(do_abs(-2.5), 2.5);