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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Interestingly, it only reproduces on AMD CPUs and not Intel.
The bug is in:
        xorl    %edx, %edx
        divl    %edi
        movl    $1, %eax
        cmove   %edx, %eax
divl leaves ZF undefined as documented (and as seen in RTL), but we use that in
the cmove instruction.

Reply via email to