https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103820
--- Comment #3 from Roger Sayle <roger at nextmovesoftware dot com> --- Thanks for investigating this HJ (I'm having difficulty configuring my system to reproduce this). Is the TARGET_64BIT guard needed by both peephole2s, or is one sufficient to restore bootstrap? Your fix/workaround (disabling the optimization on -m32) looks good, but I still can't figure out what about this transformation is unsafe, and therefore perhaps latent on -m64. Sorry again for the inconvenience.