[Bug rtl-optimization/98977] [x86] Failure to optimize consecutive sub flags usage
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 23 21:16:23 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98977
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |rtl-optimization
Target|x86_64-*-* i?86-*-* |x86_64-*-* i?86-*-*
| |aarch64*-*-*
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a testcase which shows the issue on other targets (aarch64) too:
#include <stdbool.h>
#include <stdint.h>
extern bool z, c;
uint32_t f(uint32_t dest, uint32_t src)
{
uint32_t res = dest - src;
z = !res;
c = src > dest;
return res;
}
More information about the Gcc-bugs
mailing list