diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-04 14:27:46 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-04 14:27:56 -0800 |
commit | c6d08d97c196e2ceae5e3b960befcd6c66916cad (patch) | |
tree | 89c27cee4f213fd66f6e60ce9b267d53a2c00b00 /test/unit.fromasm | |
parent | 5e82fc26d6bb0cec8863156e052250a4e441595c (diff) | |
download | binaryen-c6d08d97c196e2ceae5e3b960befcd6c66916cad.tar.gz binaryen-c6d08d97c196e2ceae5e3b960befcd6c66916cad.tar.bz2 binaryen-c6d08d97c196e2ceae5e3b960befcd6c66916cad.zip |
parse for loops in asm2wasm #60
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r-- | test/unit.fromasm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm index 5a6b78de5..4b95dfea1 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -409,6 +409,36 @@ (i32.const 1) ) ) + (func $forLoop + (local $i i32) + (block + (set_local $i + (i32.const 1) + ) + (loop $for-out$0 $for-in$1 + (block + (if_else + (i32.lt_s + (get_local $i) + (i32.const 200) + ) + (nop) + (br $for-out$0) + ) + (call $h + (get_local $i) + ) + (set_local $i + (i32.add + (get_local $i) + (i32.const 1) + ) + ) + (br $for-in$1) + ) + ) + ) + ) (func $z (nop) ) |