[Bug tree-optimization/94026] combine missed opportunity to simplify comparisons with zero

roger at nextmovesoftware dot com gcc-bugzilla@gcc.gnu.org
Sun Jul 3 20:55:37 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026

Roger Sayle <roger at nextmovesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at nextmovesoftware dot com
   Target Milestone|---                         |13.0
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #13 from Roger Sayle <roger at nextmovesoftware dot com> ---
This should now be fixed on mainline.  For the corrected code in comment #4,GCC
now generates (on arm):
        tst     w0, 1536
        cset    w0, ne
        ret
as suggested by Fei in the original PR.


More information about the Gcc-bugs mailing list