https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112816
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 56767
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56767&action=edit
gcc14-pr112816.patch
Untested fix.
Another issue is that the emitted code is terrible:
pxor %xmm1, %xmm1
psrld $31, %xmm0
pcmpeqd %xmm1, %xmm0
pcmpeqd %xmm1, %xmm0
Why not just
psrad $31, %xmm0
instead of all this?