https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107359
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-10-23 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Note if you use float instead of double. GCC produces better code. That is the following testcase: int check (char *mask, float *result, int n) { int count = 0; for (int i=0; i<n; i++) { if (mask[i] == 0 && result[i] != 2.0) count++; } return count; } So GCC could do this; just misses the 64bit case ...