From bcc6f2994e8f71b633b1d0257547aeed691f6ceb Mon Sep 17 00:00:00 2001 From: Max Graey Date: Tue, 15 Sep 2020 06:44:43 +0300 Subject: 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. --- test/wasm2js/float-ops.2asm.js.opt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/wasm2js/float-ops.2asm.js.opt') 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 = []; -- cgit v1.2.3