https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101044
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-06-29
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com
Status|UNCONFIRMED |ASSIGNED
--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 51080
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51080&action=edit
Proposed patch
Patch introduces nabs patterns where we reverse the condition of the cmove.
The compilation results in:
movl %edi, %eax
negl %eax
cmovns %edi, %eax