diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-10-25 17:03:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 17:03:10 -0700 |
commit | ded69c16a2b3f27dd9b12b184d7045596d2a21d0 (patch) | |
tree | cbe2076c9d9d00ff149e24f6d5c04376f61a5547 /test/unit.fromasm.imprecise.no-opts | |
parent | dc35ac6e83694fda26a78d8b11712c3210e30b36 (diff) | |
download | binaryen-ded69c16a2b3f27dd9b12b184d7045596d2a21d0.tar.gz binaryen-ded69c16a2b3f27dd9b12b184d7045596d2a21d0.tar.bz2 binaryen-ded69c16a2b3f27dd9b12b184d7045596d2a21d0.zip |
Optimize out bool & 1 (#804)
* asm.js corrections to unit.asm.js test
* optimize out bool&1
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index d57861df3..f372b2d57 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -17,10 +17,10 @@ (import "env" "return_int" (func $return_int (result i32))) (import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64))) (import "env" "memory" (memory $0 256 256)) - (import "env" "table" (table 10 10 anyfunc)) + (import "env" "table" (table 24 24 anyfunc)) (import "env" "memoryBase" (global $memoryBase i32)) (import "env" "tableBase" (global $tableBase i32)) - (elem (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg) + (elem (i32.const 0) $v $big_negative $v $v $w $w $importedDoubles $w $z $cneg $z $z $z $z $z $z $vi $vi $vi $vi $vi $vi $vi $vi) (global $t (mut f64) (get_global $t$asm2wasm$import)) (global $u (mut f64) (get_global $u$asm2wasm$import)) (global $Int (mut i32) (i32.const 0)) @@ -526,7 +526,7 @@ (i32.const 1) (i32.const 7) ) - (i32.const 8) + (i32.const 16) ) ) ) @@ -1130,11 +1130,13 @@ ) ) ) - (func $z + (func $z (param $x f32) (nop) ) - (func $w - (nop) + (func $w (result f64) + (return + (f64.const 0) + ) ) (func $globalOpts (local $x i32) @@ -1694,4 +1696,10 @@ ) (return) ) + (func $v + (nop) + ) + (func $vi (param $x i32) + (nop) + ) ) |