https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96828
--- Comment #2 from Ilya Oleinik <abatur45en at gmail dot com> --- Seems like PR85434 caused this issue. This patch fixes it, however i'm not sure if mov instruction insertion is the right way of fixing armv6m inability to do a load from hiregs.