[Bug tree-optimization/94916] Failure to optimize pattern into difference or zero selector

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat May 13 05:55:51 GMT 2023


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=3507
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 13 gets:
        movl    %edi, %eax
        xorl    %edx, %edx
        subl    %esi, %eax
        cmpl    %esi, %edi
        cmovl   %edx, %eax
        ret


The rest is recorded as PR 3507.

So closing as fixed.


More information about the Gcc-bugs mailing list