https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100217
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50658 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50658&action=edit gcc11-pr100217.patch Untested fix. IMHO when we have a hard reg in the inline asm, we just need to honor it, trying to force it into a pseudo and then subreg would just mean the user chosen reg is not guaranteed anymore.