summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-23 21:50:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-24 09:36:08 -0700
commit186765307f12e6c7628ad6da11b332c2bfbcaa07 (patch)
tree21198adc85ef67e92c71529e00603af6d61e9e70 /test
parent7dcb613e392757bd5a442c89f45f885a63d7b1dd (diff)
downloadbinaryen-186765307f12e6c7628ad6da11b332c2bfbcaa07.tar.gz
binaryen-186765307f12e6c7628ad6da11b332c2bfbcaa07.tar.bz2
binaryen-186765307f12e6c7628ad6da11b332c2bfbcaa07.zip
run multiple cycles of RemoveUnusedBrs
Diffstat (limited to 'test')
-rw-r--r--test/emcc_hello_world.fromasm1
-rw-r--r--test/emcc_hello_world.fromasm.imprecise1
-rw-r--r--test/passes/remove-unused-brs.txt8
3 files changed, 4 insertions, 6 deletions
diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm
index 9d50d32b2..75e2bf024 100644
--- a/test/emcc_hello_world.fromasm
+++ b/test/emcc_hello_world.fromasm
@@ -10864,7 +10864,6 @@
(get_local $$arg)
(get_local $$110)
)
- (br $label$break$L1)
)
)
)
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise
index b303c5cac..4ada9b367 100644
--- a/test/emcc_hello_world.fromasm.imprecise
+++ b/test/emcc_hello_world.fromasm.imprecise
@@ -10862,7 +10862,6 @@
(get_local $$arg)
(get_local $$110)
)
- (br $label$break$L1)
)
)
)
diff --git a/test/passes/remove-unused-brs.txt b/test/passes/remove-unused-brs.txt
index 2404e7b39..226065f3f 100644
--- a/test/passes/remove-unused-brs.txt
+++ b/test/passes/remove-unused-brs.txt
@@ -169,9 +169,9 @@
(block $a
(block $b
(block $c
- (br $a)
+ (nop)
)
- (br $a)
+ (nop)
)
(nop)
)
@@ -187,9 +187,9 @@
(block $a
(block $b
(block $c
- (br $b)
+ (nop)
)
- (br $a)
+ (nop)
)
(nop)
)