diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-13 10:41:14 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-13 10:50:48 -0700 |
commit | 39ed7c6477f24b06e7ec33d03a86d932aa9a6a5f (patch) | |
tree | 9ca557be1384415a732d3130b0e3fd6546af3437 /test/unit.fromasm.imprecise | |
parent | b4a77cf9b0780248c1a62c4409899ee1e23573ef (diff) | |
download | binaryen-39ed7c6477f24b06e7ec33d03a86d932aa9a6a5f.tar.gz binaryen-39ed7c6477f24b06e7ec33d03a86d932aa9a6a5f.tar.bz2 binaryen-39ed7c6477f24b06e7ec33d03a86d932aa9a6a5f.zip |
update br type when turning it into a br_if in remove-unused-brs
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index 35aa3e4f3..80e34dfb9 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -971,4 +971,21 @@ (br $while-in$1) ) ) + (func $__Z12multi_varargiz (param $0 i32) + (local $1 i32) + (local $2 i32) + (if + (get_local $1) + (loop $while-in$1 + (br_if $while-in$1 + (i32.eqz + (get_local $2) + ) + ) + ) + (call $lb + (i32.const 1) + ) + ) + ) ) |