diff options
author | Max Graey <maxgraey@gmail.com> | 2020-09-15 06:44:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-14 20:44:43 -0700 |
commit | bcc6f2994e8f71b633b1d0257547aeed691f6ceb (patch) | |
tree | 8655674f0f9d513cc79a4b3ec9074c3b77ccebf7 /test/wasm2js/float-ops.2asm.js.opt | |
parent | 18716065cc470c3bc29a4fecf3889891a9bf604b (diff) | |
download | binaryen-bcc6f2994e8f71b633b1d0257547aeed691f6ceb.tar.gz binaryen-bcc6f2994e8f71b633b1d0257547aeed691f6ceb.tar.bz2 binaryen-bcc6f2994e8f71b633b1d0257547aeed691f6ceb.zip |
Add float operations for isSymmetric util (#3127)
Add floating point Eq and Ne operators to Properties::isSymmetric. Also treat additional float ops as symmetric specifically in OptimizeInstructions when their operands are known to be non-NaN.
Diffstat (limited to 'test/wasm2js/float-ops.2asm.js.opt')
-rw-r--r-- | test/wasm2js/float-ops.2asm.js.opt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/wasm2js/float-ops.2asm.js.opt b/test/wasm2js/float-ops.2asm.js.opt index 7e3413736..17519fc2a 100644 --- a/test/wasm2js/float-ops.2asm.js.opt +++ b/test/wasm2js/float-ops.2asm.js.opt @@ -255,19 +255,19 @@ function asmFunc(global, env, buffer) { } function legalstub$43($0, $1_1) { - return Math_fround(+($0 >>> 0) + 4294967296.0 * +($1_1 | 0)); + return Math_fround(+($0 >>> 0) + +($1_1 | 0) * 4294967296.0); } function legalstub$44($0, $1_1) { - return +($0 >>> 0) + 4294967296.0 * +($1_1 | 0); + return +($0 >>> 0) + +($1_1 | 0) * 4294967296.0; } function legalstub$45($0, $1_1) { - return Math_fround(+($0 >>> 0) + 4294967296.0 * +($1_1 >>> 0)); + return Math_fround(+($0 >>> 0) + +($1_1 >>> 0) * 4294967296.0); } function legalstub$46($0, $1_1) { - return +($0 >>> 0) + 4294967296.0 * +($1_1 >>> 0); + return +($0 >>> 0) + +($1_1 >>> 0) * 4294967296.0; } var FUNCTION_TABLE = []; |