diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-10 14:24:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-10 14:25:04 -0700 |
commit | 1c6a1375140c7b2ef720e706d7d97efe7140cdcc (patch) | |
tree | e1f6941d03ed1cd074743a071006d22f7a048ad4 /test/passes | |
parent | 91b33ce4d692c221336f2d6d4345eb239ead401e (diff) | |
download | binaryen-1c6a1375140c7b2ef720e706d7d97efe7140cdcc.tar.gz binaryen-1c6a1375140c7b2ef720e706d7d97efe7140cdcc.tar.bz2 binaryen-1c6a1375140c7b2ef720e706d7d97efe7140cdcc.zip |
optimize eqz^2 in select and br_if
Diffstat (limited to 'test/passes')
-rw-r--r-- | test/passes/optimize-instructions.txt | 7 | ||||
-rw-r--r-- | test/passes/optimize-instructions.wast | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.txt b/test/passes/optimize-instructions.txt index 6d83cbdbc..ca5f02849 100644 --- a/test/passes/optimize-instructions.txt +++ b/test/passes/optimize-instructions.txt @@ -205,5 +205,12 @@ ) ) ) + (drop + (select + (i32.const 0) + (i32.const 1) + (i32.const 2) + ) + ) ) ) diff --git a/test/passes/optimize-instructions.wast b/test/passes/optimize-instructions.wast index 08868e23a..b1a7ab47e 100644 --- a/test/passes/optimize-instructions.wast +++ b/test/passes/optimize-instructions.wast @@ -240,5 +240,16 @@ ) ) ) + (drop + (select + (i32.const 0) + (i32.const 1) + (i32.eqz + (i32.eqz + (i32.const 2) + ) + ) + ) + ) ) ) |