https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111260
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #7) > Better reduced testcase: > ``` > long f(int a) > { > int b = 822920; > int t = a == b; > return t * (long)b; > } > ``` Here is one that ICEs on both arm and aarch64: ``` int f1(long long a) { int b = 822920; int t = a == b; return t * (int)b; } ```