summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-03-22 10:55:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-03-22 10:55:07 -0700
commit94bf9d12986fb069323738247bea5a480cfd8ef6 (patch)
treeaa9a88a20ebd6d199f67853ab88fc0fa91b972df /test/unit.fromasm.imprecise
parent232327c1a687fa7571dac7c4742a3db1b2a7e166 (diff)
parent49a5fedf0e9ab16d294d9aba860a0375fc4debd9 (diff)
downloadbinaryen-94bf9d12986fb069323738247bea5a480cfd8ef6.tar.gz
binaryen-94bf9d12986fb069323738247bea5a480cfd8ef6.tar.bz2
binaryen-94bf9d12986fb069323738247bea5a480cfd8ef6.zip
Merge pull request #272 from WebAssembly/asm2wasm-fix
asm2wasm fix
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r--test/unit.fromasm.imprecise37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise
index 9bfa1789c..ef9ccaa5d 100644
--- a/test/unit.fromasm.imprecise
+++ b/test/unit.fromasm.imprecise
@@ -173,6 +173,7 @@
)
)
(func $switcher (param $x i32) (result i32)
+ (local $waka i32)
(block $switch-default$3
(block $switch-case$2
(block $switch-case$1
@@ -239,6 +240,42 @@
(br $label$break$Lout)
)
)
+ (loop $label$break$L1 $label$continue$L1
+ (loop $label$break$L3 $label$continue$L3
+ (block $switch$17
+ (block $switch-default$21
+ (block $switch-default$21
+ (block $switch-case$20
+ (block $switch-case$19
+ (block $switch-case$18
+ (br_table $switch-case$18 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-case$20 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-default$21 $switch-case$19 $switch-default$21
+ (i32.sub
+ (get_local $x)
+ (i32.const -1)
+ )
+ )
+ )
+ (br $label$break$L1)
+ (br $switch$17)
+ )
+ (set_local $waka
+ (i32.const 1)
+ )
+ (br $switch$17)
+ )
+ (br $label$break$L3)
+ (br $switch$17)
+ )
+ (br $label$break$L1)
+ )
+ )
+ (br $label$continue$L3)
+ )
+ (call_import $h
+ (i32.const 120)
+ )
+ (br $label$continue$L1)
+ )
(return
(i32.const 0)
)