summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-05-10 20:49:16 -0700
committerGitHub <noreply@github.com>2017-05-10 20:49:16 -0700
commit77802a63e5814bcde5ac9af3f4694507d8bae9e9 (patch)
tree839be4a2210611c008527b54ad741db52aa0d456 /test/unit.fromasm.imprecise
parent6efa4a97b2c643bf35756bb6e989b90d6b3e44bc (diff)
parentb3c97a9d6e9c0858c7a021c6437a4f38ceb7a156 (diff)
downloadbinaryen-77802a63e5814bcde5ac9af3f4694507d8bae9e9.tar.gz
binaryen-77802a63e5814bcde5ac9af3f4694507d8bae9e9.tar.bz2
binaryen-77802a63e5814bcde5ac9af3f4694507d8bae9e9.zip
Merge pull request #1007 from WebAssembly/brs
Misc minor remove-unused-brs improvements
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r--test/unit.fromasm.imprecise37
1 files changed, 15 insertions, 22 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise
index b0f46e7ad..bf01a4681 100644
--- a/test/unit.fromasm.imprecise
+++ b/test/unit.fromasm.imprecise
@@ -179,15 +179,11 @@
)
)
(block $switch-case9
- (block $switch-case6
- (block $switch-case5
- (block $switch-case4
- (br_table $switch-case9 $switch-case9 $switch-case9 $switch-case6 $switch-case9 $switch-case9 $switch-case9 $switch-case9 $switch-case5 $switch-case9 $switch-case4 $switch-case9
- (i32.sub
- (get_local $0)
- (i32.const 2)
- )
- )
+ (block $switch-case4
+ (br_table $switch-case9 $switch-case9 $switch-case9 $switch-case4 $switch-case9 $switch-case9 $switch-case9 $switch-case9 $switch-case4 $switch-case9 $switch-case4 $switch-case9
+ (i32.sub
+ (get_local $0)
+ (i32.const 2)
)
)
)
@@ -801,22 +797,19 @@
(call $h
(i32.const -1)
)
- (block $__rjti$1
- (loop $while-in
- (br_if $while-in
- (i32.eqz
- (tee_local $0
- (i32.add
- (get_local $0)
- (i32.const 1)
- )
+ (loop $while-in
+ (br_if $while-in
+ (i32.eqz
+ (tee_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 1)
)
)
)
- (call $h
- (i32.const 2)
- )
- (br $__rjti$1)
+ )
+ (call $h
+ (i32.const 2)
)
)
(call $h