diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-02-20 19:28:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-20 19:28:23 -0800 |
commit | 5578bb58402fde2bb2c932bfa08ab71045854a41 (patch) | |
tree | a547cf74eeaa60dd430de091fcae0a3eab8999a9 /test/float-ops.2asm.js | |
parent | eacd9a987750ae3984c225a73e9567931277d6a0 (diff) | |
download | binaryen-5578bb58402fde2bb2c932bfa08ab71045854a41.tar.gz binaryen-5578bb58402fde2bb2c932bfa08ab71045854a41.tar.bz2 binaryen-5578bb58402fde2bb2c932bfa08ab71045854a41.zip |
wasm2asm fixes (#1436)
* don't look for asm.js compilation message if almost asm
* fix wasm2asm f32 operations
Diffstat (limited to 'test/float-ops.2asm.js')
-rw-r--r-- | test/float-ops.2asm.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/float-ops.2asm.js b/test/float-ops.2asm.js index 5cad310f9..524377aa3 100644 --- a/test/float-ops.2asm.js +++ b/test/float-ops.2asm.js @@ -84,7 +84,7 @@ function asmFunc(global, env, buffer) { $$0 = Math_fround($$0); $$1 = Math_fround($$1); var $$2 = Math_fround(0), $$3 = Math_fround(0), $$4 = 0, wasm2asm_i32$0 = 0; - return Math_fround($$0 == $$1) | 0; + return $$0 == $$1 | 0; return wasm2asm_i32$0 | 0; } @@ -92,7 +92,7 @@ function asmFunc(global, env, buffer) { $$0 = Math_fround($$0); $$1 = Math_fround($$1); var $$2 = Math_fround(0), $$3 = Math_fround(0), $$4 = 0, wasm2asm_i32$0 = 0; - return Math_fround($$0 != $$1) | 0; + return $$0 != $$1 | 0; return wasm2asm_i32$0 | 0; } @@ -100,7 +100,7 @@ function asmFunc(global, env, buffer) { $$0 = Math_fround($$0); $$1 = Math_fround($$1); var $$2 = Math_fround(0), $$3 = Math_fround(0), $$4 = 0, wasm2asm_i32$0 = 0; - return Math_fround($$0 >= $$1) | 0; + return $$0 >= $$1 | 0; return wasm2asm_i32$0 | 0; } @@ -108,7 +108,7 @@ function asmFunc(global, env, buffer) { $$0 = Math_fround($$0); $$1 = Math_fround($$1); var $$2 = Math_fround(0), $$3 = Math_fround(0), $$4 = 0, wasm2asm_i32$0 = 0; - return Math_fround($$0 > $$1) | 0; + return $$0 > $$1 | 0; return wasm2asm_i32$0 | 0; } @@ -116,7 +116,7 @@ function asmFunc(global, env, buffer) { $$0 = Math_fround($$0); $$1 = Math_fround($$1); var $$2 = Math_fround(0), $$3 = Math_fround(0), $$4 = 0, wasm2asm_i32$0 = 0; - return Math_fround($$0 <= $$1) | 0; + return $$0 <= $$1 | 0; return wasm2asm_i32$0 | 0; } @@ -124,7 +124,7 @@ function asmFunc(global, env, buffer) { $$0 = Math_fround($$0); $$1 = Math_fround($$1); var $$2 = Math_fround(0), $$3 = Math_fround(0), $$4 = 0, wasm2asm_i32$0 = 0; - return Math_fround($$0 < $$1) | 0; + return $$0 < $$1 | 0; return wasm2asm_i32$0 | 0; } |