https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114203
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |tree-optimization Last reconfirmed| |2024-03-02 CC| |pinskia at gcc dot gnu.org Ever confirmed|0 |1 Target Milestone|--- |13.3 Keywords| |needs-bisection, wrong-code Summary|Miscompilation: A possible |[13/14 Regression] |miscompilation in GCC 13 |Miscompilation: A possible |and 14 with option -Os |miscompilation in GCC 13 | |and 14 with option -Os Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- final value replacement: c_7 = PHI <c_2(4)> with expr: b_3(D) != 0 ? 32 - __builtin_clz ((unsigned int) b_3(D)) : 24 24 is definitely wrong here. It should have been 0.