[Bug middle-end/97968] [11/12/13/14 Regression] Unnecessary mov instruction with comparison and cmov

2023-07-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97968

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||needs-bisection
  Known to work||13.1.0

--- Comment #7 from Andrew Pinski  ---
In GCC 13+ we produce:
f:
xorl%eax, %eax
cmpl%esi, %edi
cmovg   %edi, %eax
ret

[Bug middle-end/97968] [11/12/13/14 Regression] Unnecessary mov instruction with comparison and cmov

2023-07-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97968

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|10.5|11.5

--- Comment #6 from Richard Biener  ---
GCC 10 branch is being closed.