diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-06 16:38:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 18:42:15 -0700 |
commit | 2b98366e3f4787fc8d3d21ba0c01a577b8ea0d66 (patch) | |
tree | 87e84940011fe32620019571fde84eb4360d14c4 /test/unit.fromasm | |
parent | c2072c3f7c96eed6abbc7901c181bec92e3b9ced (diff) | |
download | binaryen-2b98366e3f4787fc8d3d21ba0c01a577b8ea0d66.tar.gz binaryen-2b98366e3f4787fc8d3d21ba0c01a577b8ea0d66.tar.bz2 binaryen-2b98366e3f4787fc8d3d21ba0c01a577b8ea0d66.zip |
track globals in EffectAnalyzer
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r-- | test/unit.fromasm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm index bafc17f3f..578385db3 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -682,4 +682,32 @@ ) ) ) + (func $globalOpts + (local $0 i32) + (i32.store8 + (i32.const 13) + (i32.load + (i32.const 12) + ) + ) + (set_global $Double + (get_global $Double) + ) + (set_global $Int + (get_global $Int) + ) + (call $globalOpts) + (set_local $0 + (get_global $Int) + ) + (if + (i32.const 1) + (set_global $Int + (i32.const 20) + ) + ) + (set_global $Int + (get_local $0) + ) + ) ) |