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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|target                      |middle-end
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-08-16
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
If I saw these two statements:
        auto m = n%2;
        n = n/2;

GCC is able to produce the testb.  This is due to the shift clobbering the
flags.
I wonder if we could produce better code during expand.

Reply via email to