https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93561
--- Comment #1 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- Thank you for reporting this. It seems the bug did not manifested itself before as the most targets have virtual hard registers as the last hard regs. I'll commit your patch today. Thank you again.