diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-06-01 12:33:55 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-06-01 12:33:55 -0700 |
commit | db2ae40be2c52c0821da355285384aa0db8fc948 (patch) | |
tree | 219196901187a754333cb076ce786a5bea653371 /test/unit.fromasm.imprecise.no-opts | |
parent | 208959079a9c4b97a2457e8d6b11c5bc295c0754 (diff) | |
download | binaryen-db2ae40be2c52c0821da355285384aa0db8fc948.tar.gz binaryen-db2ae40be2c52c0821da355285384aa0db8fc948.tar.bz2 binaryen-db2ae40be2c52c0821da355285384aa0db8fc948.zip |
if we use the zero-init value of a local, we cannot coalesce it with a param (#556)
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index 2f7665622..c3da01359 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -693,6 +693,34 @@ (func $exportMe (f64.const -3.14159) ) + (func $zeroInit (param $x i32) + (local $y i32) + (if + (call $lb + (i32.const 0) + ) + (if + (call $lb + (i32.const 1) + ) + (set_local $y + (i32.const 3) + ) + ) + (set_local $y + (i32.const 3) + ) + ) + (if + (i32.eq + (get_local $y) + (i32.const 3) + ) + (call $lb + (i32.const 2) + ) + ) + ) (func $z (nop) ) |