https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117330
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2024-10-28 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED --- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Frank Scheiner from comment #11) > Created attachment 59479 [details] Slightly better reduced testcase: ``` enum psi_states { PSI_IO_SOME, }; void f(unsigned *times, unsigned *times1, unsigned state_mask) { enum psi_states s; for (s = 0; s < 2; s++) { if (state_mask & (1 << s)) times[s] += 1; times[s] = times[s] - times1[s]; } } ``` I will commit the testcase in a little bit. I don't know why s needs to be an enum type yet either.