diff options
author | Max Graey <maxgraey@gmail.com> | 2020-10-06 22:47:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 12:47:38 -0700 |
commit | fe56186c48350e7b4b4a2243022da65703a8f1b7 (patch) | |
tree | 4956aa3d37b221060138c7cc792ab6ff8de68899 /test | |
parent | 8548101838bb72ca06abb5cbdc033e39c9d970a7 (diff) | |
download | binaryen-fe56186c48350e7b4b4a2243022da65703a8f1b7.tar.gz binaryen-fe56186c48350e7b4b4a2243022da65703a8f1b7.tar.bz2 binaryen-fe56186c48350e7b4b4a2243022da65703a8f1b7.zip |
Revert some changes for #3193 (#3197)
`(signed)x % (i32|i64).min_s ==> (x & (i32|i64).max_s)` is not valid unless compared to zero.
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/optimize-instructions_all-features.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/passes/optimize-instructions_all-features.txt b/test/passes/optimize-instructions_all-features.txt index 4d9c626fa..e12afcca4 100644 --- a/test/passes/optimize-instructions_all-features.txt +++ b/test/passes/optimize-instructions_all-features.txt @@ -2745,15 +2745,15 @@ (i64.const 0) ) (drop - (i32.and + (i32.rem_s (local.get $x) - (i32.const 2147483647) + (i32.const -2147483648) ) ) (drop - (i64.and + (i64.rem_s (local.get $y) - (i64.const 9223372036854775807) + (i64.const -9223372036854775808) ) ) ) |