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.imprecise | |
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.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index cdaca7e10..1f303aef6 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -663,4 +663,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) + ) + ) ) |