https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91136
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The obvious workaround is -fno-delayed-branch . DBR is the delay slot scheduler. I am not shocked this bug has not happened before. The delay slot scheduler has not had major development in the last 10 years too :).