https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97701
--- Comment #7 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- I've reproduced it on gcc-10 branch. For some reason, LRA does not change register class for reload pseudo. This bug will take some time for a fix as the fix will probably affect very sensitive part of LRA and will need a lot of testing. But I guess the patch will be ready on the next week.