diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-04-17 16:37:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-17 16:37:00 -0700 |
commit | aaf1c43f10cb703c9f926ddcb5aa2e728b651e07 (patch) | |
tree | bcc691bf3dc3f2faeb41cf544b55b681615d79c1 /test | |
parent | f75cf7fe9a70ec7041f758f061ac45deed18f4ab (diff) | |
download | binaryen-aaf1c43f10cb703c9f926ddcb5aa2e728b651e07.tar.gz binaryen-aaf1c43f10cb703c9f926ddcb5aa2e728b651e07.tar.bz2 binaryen-aaf1c43f10cb703c9f926ddcb5aa2e728b651e07.zip |
Improve log-execution pass to also log around returns (#2019)
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/log-execution.txt | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/test/passes/log-execution.txt b/test/passes/log-execution.txt index 3f842a6f1..a7e83f1e8 100644 --- a/test/passes/log-execution.txt +++ b/test/passes/log-execution.txt @@ -18,26 +18,31 @@ ) (func $workk (; 4 ;) (type $FUNCSIG$v) (call $log_execution - (i32.const 2) + (i32.const 3) ) (block (if (i32.const 0) (nop) ) - (drop - (i32.const 1) + (block + (call $log_execution + (i32.const 2) + ) + (drop + (i32.const 1) + ) ) ) ) (func $loops (; 5 ;) (type $FUNCSIG$v) (call $log_execution - (i32.const 6) + (i32.const 8) ) (block (loop $x (call $log_execution - (i32.const 3) + (i32.const 4) ) (block (call $loops) @@ -48,24 +53,29 @@ (call $intt) (loop $y (call $log_execution - (i32.const 4) + (i32.const 5) ) (call $loops) ) ) - (loop $loop-in + (block (call $log_execution - (i32.const 5) + (i32.const 7) ) - (block - (drop - (i32.const 10) - ) - (drop - (i32.const 20) + (loop $loop-in + (call $log_execution + (i32.const 6) ) - (drop - (i32.const 30) + (block + (drop + (i32.const 10) + ) + (drop + (i32.const 20) + ) + (drop + (i32.const 30) + ) ) ) ) @@ -73,11 +83,11 @@ ) (func $loops-similar (; 6 ;) (type $FUNCSIG$v) (call $log_execution - (i32.const 8) + (i32.const 10) ) (loop $x (call $log_execution - (i32.const 7) + (i32.const 9) ) (block (call $loops) |