diff options
author | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-02-13 14:15:48 -0800 |
---|---|---|
committer | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-02-16 22:45:39 -0800 |
commit | 04d38f6f881b16a014c47e897a4590d76ec548ff (patch) | |
tree | b83569be07ccb148331da81591a1f5fde7ecbfaa /test/passes/optimize-instructions.txt | |
parent | f05efb982f8472c1dd6beb0e8dbc8afc73e82fcb (diff) | |
download | binaryen-04d38f6f881b16a014c47e897a4590d76ec548ff.tar.gz binaryen-04d38f6f881b16a014c47e897a4590d76ec548ff.tar.bz2 binaryen-04d38f6f881b16a014c47e897a4590d76ec548ff.zip |
remove unneeded masks using getMaxBits
Diffstat (limited to 'test/passes/optimize-instructions.txt')
-rw-r--r-- | test/passes/optimize-instructions.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.txt b/test/passes/optimize-instructions.txt index 3b4718f6a..31dceaf60 100644 --- a/test/passes/optimize-instructions.txt +++ b/test/passes/optimize-instructions.txt @@ -1290,4 +1290,58 @@ ) ) ) + (func $mask-bits (type $4) (param $0 i32) (param $1 i32) + (drop + (tee_local $0 + (i32.const 127) + ) + ) + (drop + (tee_local $0 + (i32.const 128) + ) + ) + (drop + (i32.and + (tee_local $0 + (i32.const 128) + ) + (i32.const 254) + ) + ) + (drop + (i32.and + (tee_local $0 + (i32.const 128) + ) + (i32.const 1279) + ) + ) + (drop + (i32.and + (tee_local $0 + (i32.const 128) + ) + (i32.const 1290) + ) + ) + (drop + (tee_local $0 + (i32.const 128) + ) + ) + (drop + (tee_local $0 + (i32.const 128) + ) + ) + (drop + (i32.and + (tee_local $0 + (i32.const 128) + ) + (i32.const 127) + ) + ) + ) ) |