diff options
author | Alon Zakai <azakai@google.com> | 2022-12-20 14:37:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 14:37:28 -0800 |
commit | 94a45c6aba605f0f7e0a2fac227a2dd7c03a391f (patch) | |
tree | a6e1c6e056636ff70fa99216e4f0219b4d60d7dd /test/example | |
parent | 8c2696b78f5658888d0d480eaddd9eed045b3e7b (diff) | |
download | binaryen-94a45c6aba605f0f7e0a2fac227a2dd7c03a391f.tar.gz binaryen-94a45c6aba605f0f7e0a2fac227a2dd7c03a391f.tar.bz2 binaryen-94a45c6aba605f0f7e0a2fac227a2dd7c03a391f.zip |
OptimizeInstructions: Check for possible added-constant overflows (#5227)
Fix a regression from #5025 : we subtract constants there, and we need to be aware
that such subtraction can change a constant from signed to unsigned if the comparison
is signed, as
0x80000000 - 1 = 0x7fffffff
0x8000000 is a negative number when seen as signed, but always positive after the
subtraction.
Diffstat (limited to 'test/example')
0 files changed, 0 insertions, 0 deletions