[Bug tree-optimization/125737] `a%b < b` should be true if a and b are non-negative
kaelfandrew at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 23 18:42:38 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125737
Kael Franco <kaelfandrew at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #64723|0 |1
is obsolete| |
--- Comment #5 from Kael Franco <kaelfandrew at gmail dot com> ---
Created attachment 64835
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64835&action=edit
Updated patch
Per Pinski comment, X % Y < Y -> Y >= 0 and X % Y >= Y -> Y < 0. Will upload to
gcc-patches when this bootstraps itself and has no regressions.
More information about the Gcc-bugs
mailing list