https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102902
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |100810 Last reconfirmed| |2021-10-22 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. -fno-ivopts fixes the issue. I suspect (have not fully looked yet), this is the same issue as PR 100810. Initializing g also fixes the issue which is another sign it is the same issue as PR 100810. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100810 [Bug 100810] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776