Index: test/mjsunit/wasm/asm-wasm-stdlib.js |
diff --git a/test/mjsunit/wasm/asm-wasm-stdlib.js b/test/mjsunit/wasm/asm-wasm-stdlib.js |
index fe39a30a8856f13b26f083748416808c83ead6a7..ddcfd800b1daa2c46ce6cd06cb57167aa791d375 100644 |
--- a/test/mjsunit/wasm/asm-wasm-stdlib.js |
+++ b/test/mjsunit/wasm/asm-wasm-stdlib.js |
@@ -83,33 +83,34 @@ |
} |
function caller() { |
- if (!deltaEqual(StdlibMathSqrt(123.0), 11.090536506409418)) return 0; |
- if (StdlibMathSqrt(fround(256.0)) != fround(16.0)) return 0; |
- if (StdlibMathCeil(123.7) != 124.0) return 0; |
- if (StdlibMathCeil(fround(123.7)) != fround(124.0)) return 0; |
- if (StdlibMathFloor(123.7) != 123.0) return 0; |
- if (StdlibMathFloor(fround(123.7)) != fround(123.0)) return 0; |
- if (StdlibMathAbs(-123.0) != 123.0) return 0; |
- if (StdlibMathAbs(fround(-123.0)) != fround(123.0)) return 0; |
- if (StdlibMathMin(123.4, 1236.4) != 123.4) return 0; |
- if (StdlibMathMin(fround(123.4), |
- fround(1236.4)) != fround(123.4)) return 0; |
- if (StdlibMathMax(123.4, 1236.4) != 1236.4) return 0; |
- if (StdlibMathMax(fround(123.4), fround(1236.4)) |
+ if (!(deltaEqual(+StdlibMathSqrt(123.0), 11.090536506409418)|0)) return 0; |
+ if (fround(StdlibMathSqrt(fround(256.0))) != fround(16.0)) return 0; |
+ if (+StdlibMathCeil(123.7) != 124.0) return 0; |
+ if (fround(StdlibMathCeil(fround(123.7))) != fround(124.0)) return 0; |
+ if (+StdlibMathFloor(123.7) != 123.0) return 0; |
+ if (fround(StdlibMathFloor(fround(123.7))) != fround(123.0)) return 0; |
+ if (+StdlibMathAbs(-123.0) != 123.0) return 0; |
+ if (fround(StdlibMathAbs(fround(-123.0))) != fround(123.0)) return 0; |
+ if (+StdlibMathMin(123.4, 1236.4) != 123.4) return 0; |
+ if (fround(StdlibMathMin(fround(123.4), |
+ fround(1236.4))) != fround(123.4)) return 0; |
+ if (+StdlibMathMax(123.4, 1236.4) != 1236.4) return 0; |
+ if (fround(StdlibMathMax(fround(123.4), fround(1236.4))) |
!= fround(1236.4)) return 0; |
- if (!deltaEqual(StdlibMathAcos(0.1), 1.4706289056333368)) return 0; |
- if (!deltaEqual(StdlibMathAsin(0.2), 0.2013579207903308)) return 0; |
- if (!deltaEqual(StdlibMathAtan(0.2), 0.19739555984988078)) return 0; |
- if (!deltaEqual(StdlibMathCos(0.2), 0.9800665778412416)) return 0; |
- if (!deltaEqual(StdlibMathSin(0.2), 0.19866933079506122)) return 0; |
- if (!deltaEqual(StdlibMathTan(0.2), 0.20271003550867250)) return 0; |
- if (!deltaEqual(StdlibMathExp(0.2), 1.2214027581601699)) return 0; |
- if (!deltaEqual(StdlibMathLog(0.2), -1.6094379124341003)) return 0; |
- |
- if (StdlibMathImul(6, 7) != 42) return 0; |
- if (!deltaEqual(StdlibMathAtan2(6.0, 7.0), 0.7086262721276703)) return 0; |
- if (StdlibMathPow(6.0, 7.0) != 279936.0) return 0; |
+ if (!(deltaEqual(+StdlibMathAcos(0.1), 1.4706289056333368)|0)) return 0; |
+ if (!(deltaEqual(+StdlibMathAsin(0.2), 0.2013579207903308)|0)) return 0; |
+ if (!(deltaEqual(+StdlibMathAtan(0.2), 0.19739555984988078)|0)) return 0; |
+ if (!(deltaEqual(+StdlibMathCos(0.2), 0.9800665778412416)|0)) return 0; |
+ if (!(deltaEqual(+StdlibMathSin(0.2), 0.19866933079506122)|0)) return 0; |
+ if (!(deltaEqual(+StdlibMathTan(0.2), 0.20271003550867250)|0)) return 0; |
+ if (!(deltaEqual(+StdlibMathExp(0.2), 1.2214027581601699)|0)) return 0; |
+ if (!(deltaEqual(+StdlibMathLog(0.2), -1.6094379124341003)|0)) return 0; |
+ |
+ if ((StdlibMathImul(6, 7)|0) != 42) return 0; |
+ if (!(deltaEqual(+StdlibMathAtan2(6.0, 7.0), 0.7086262721276703)|0)) |
+ return 0; |
+ if (+StdlibMathPow(6.0, 7.0) != 279936.0) return 0; |
return 1; |
} |