diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-10-27 19:42:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-27 19:42:21 -0700 |
commit | a83d29e019f28c0940730bc58f96d703aa614345 (patch) | |
tree | b48249f3614dae74644ec99a9cd3d3d3a539138a /test/memorygrowth.fromasm.imprecise | |
parent | aa06410ccd112d6276e734f8413f2754d32a1f47 (diff) | |
parent | af021c52634d66db1a3815f553602b9f9464e023 (diff) | |
download | binaryen-a83d29e019f28c0940730bc58f96d703aa614345.tar.gz binaryen-a83d29e019f28c0940730bc58f96d703aa614345.tar.bz2 binaryen-a83d29e019f28c0940730bc58f96d703aa614345.zip |
Merge pull request #811 from WebAssembly/iffify
Some minor if/br_if opts
Diffstat (limited to 'test/memorygrowth.fromasm.imprecise')
-rw-r--r-- | test/memorygrowth.fromasm.imprecise | 68 |
1 files changed, 33 insertions, 35 deletions
diff --git a/test/memorygrowth.fromasm.imprecise b/test/memorygrowth.fromasm.imprecise index f9fa51bce..f509f23f2 100644 --- a/test/memorygrowth.fromasm.imprecise +++ b/test/memorygrowth.fromasm.imprecise @@ -9050,48 +9050,46 @@ ) (block (loop $while-in - (block $while-out - (br_if $while-out - (i32.eqz - (i32.and - (get_local $0) - (i32.const 3) - ) - ) - ) - (if - (i32.eqz - (get_local $2) - ) - (return - (get_local $3) - ) - ) - (i32.store8 + (if + (i32.and (get_local $0) - (i32.load8_s - (get_local $1) - ) + (i32.const 3) ) - (set_local $0 - (i32.add + (block + (if + (i32.eqz + (get_local $2) + ) + (return + (get_local $3) + ) + ) + (i32.store8 (get_local $0) - (i32.const 1) + (i32.load8_s + (get_local $1) + ) ) - ) - (set_local $1 - (i32.add - (get_local $1) - (i32.const 1) + (set_local $0 + (i32.add + (get_local $0) + (i32.const 1) + ) ) - ) - (set_local $2 - (i32.sub - (get_local $2) - (i32.const 1) + (set_local $1 + (i32.add + (get_local $1) + (i32.const 1) + ) ) + (set_local $2 + (i32.sub + (get_local $2) + (i32.const 1) + ) + ) + (br $while-in) ) - (br $while-in) ) ) (loop $while-in1 |