diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-06-11 17:31:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-06-11 17:31:12 -0700 |
commit | a3c339c259d0dafc87fac565fac308e9699726f9 (patch) | |
tree | b41f8ceaacaf162a67fa374d5c884612ade90293 /test/unit.fromasm.imprecise.no-opts | |
parent | 59542c98459771905ef25c5fe48079f3353d6869 (diff) | |
download | binaryen-a3c339c259d0dafc87fac565fac308e9699726f9.tar.gz binaryen-a3c339c259d0dafc87fac565fac308e9699726f9.tar.bz2 binaryen-a3c339c259d0dafc87fac565fac308e9699726f9.zip |
fix br_if with value optimization in remove-unused-brs
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index c3da01359..9f49824f3 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -721,6 +721,30 @@ ) ) ) + (func $phi (result i32) + (local $x i32) + (block $do-once$0 + (block + (if + (call $lb + (i32.const 1) + ) + (block + (set_local $x + (i32.const 0) + ) + (br $do-once$0) + ) + ) + (set_local $x + (i32.const 1) + ) + ) + ) + (return + (get_local $x) + ) + ) (func $z (nop) ) |