diff options
author | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-02-11 13:13:24 -0800 |
---|---|---|
committer | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-02-16 22:45:36 -0800 |
commit | 51d57932a34dd265a8c3c35a6773387e5dd7bc9e (patch) | |
tree | 0ddc232fa0e2211af0e177a508f76b86fbf0714b /test/passes/optimize-instructions.wast | |
parent | 41eee37bc153a68b0f0c46162e21f825d1784499 (diff) | |
download | binaryen-51d57932a34dd265a8c3c35a6773387e5dd7bc9e.tar.gz binaryen-51d57932a34dd265a8c3c35a6773387e5dd7bc9e.tar.bz2 binaryen-51d57932a34dd265a8c3c35a6773387e5dd7bc9e.zip |
optimize sign-extends to eqz
Diffstat (limited to 'test/passes/optimize-instructions.wast')
-rw-r--r-- | test/passes/optimize-instructions.wast | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.wast b/test/passes/optimize-instructions.wast index 191450897..d9e6fcc71 100644 --- a/test/passes/optimize-instructions.wast +++ b/test/passes/optimize-instructions.wast @@ -1377,4 +1377,17 @@ ) ) ) + (func $sign-ext-eqz (param $0 i32) (param $1 i32) + (drop + (i32.eqz + (i32.shr_s + (i32.shl + (get_local $0) + (i32.const 24) + ) + (i32.const 24) + ) + ) + ) + ) ) |