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; }