diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-22 16:03:20 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:55:05 -0700 |
commit | d044aeab0c2f66c4bb8aa4b85f91c8af0ed633ae (patch) | |
tree | 197f1d1eeeb3ccad5e21c0c6175ba6f58be826b8 /test/unit.fromasm.imprecise.no-opts | |
parent | f3bb9debe6af0576d76bda1580df2570e749bd36 (diff) | |
download | binaryen-d044aeab0c2f66c4bb8aa4b85f91c8af0ed633ae.tar.gz binaryen-d044aeab0c2f66c4bb8aa4b85f91c8af0ed633ae.tar.bz2 binaryen-d044aeab0c2f66c4bb8aa4b85f91c8af0ed633ae.zip |
run vacuum again after autodrop in asm2wasm, if optimizing
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index f8f028164..bec8a4f58 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -870,6 +870,43 @@ (call $phi) ) ) + (func $useSetGlobal (result i32) + (local $x i32) + (set_local $x + (block + (set_global $Int + (i32.const 10) + ) + (get_global $Int) + ) + ) + (set_global $Int + (i32.const 20) + ) + (return + (block + (set_global $Int + (i32.const 30) + ) + (get_global $Int) + ) + ) + ) + (func $usesSetGlobal2 (result i32) + (return + (block + (block + (set_global $Int + (i32.const 40) + ) + (drop + (get_global $Int) + ) + ) + (i32.const 50) + ) + ) + ) (func $z (nop) ) |