https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121567
--- Comment #1 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> --- This is fixed by switching the backend to LRA. Try this tree: https://github.com/olegendo/gcc/commits/devel/sh-lra/