diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-07 17:03:38 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-07 18:27:29 -0800 |
commit | 284ae677cca8794a464f9bf702e3ec6aace6c65b (patch) | |
tree | be323dc8b38ebe8cfe758c7df8ad2865f3f2bd7d /test/min.wast | |
parent | ea3a9db4a071292d4e976ef36f4c197a9e8a5fea (diff) | |
download | binaryen-284ae677cca8794a464f9bf702e3ec6aace6c65b.tar.gz binaryen-284ae677cca8794a464f9bf702e3ec6aace6c65b.tar.bz2 binaryen-284ae677cca8794a464f9bf702e3ec6aace6c65b.zip |
br_table, no more cases
Diffstat (limited to 'test/min.wast')
-rw-r--r-- | test/min.wast | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/test/min.wast b/test/min.wast index 890d3156f..b626cd42a 100644 --- a/test/min.wast +++ b/test/min.wast @@ -26,23 +26,22 @@ ) (func $littleswitch (param $x i32) (result i32) (block $topmost - (tableswitch $switch$0 - (i32.sub - (get_local $x) - (i32.const 1) - ) - (table (case $switch-case$1) (case $switch-case$2)) (case $switch-case$1) - (case $switch-case$1 - (br $topmost - (i32.const 1) + (block $switch-case$2 + (block $switch-case$1 + (br_table $switch-case$1 $switch-case$2 $switch-case$1 + (i32.sub + (get_local $x) + (i32.const 1) + ) ) ) - (case $switch-case$2 - (br $topmost - (i32.const 2) - ) + (br $topmost + (i32.const 1) ) ) + (br $topmost + (i32.const 2) + ) (i32.const 0) ) ) |