https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83726
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 43085 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43085&action=edit gcc8-pr83726.patch Actually, because *movdi_aarch64 can handle any (DImode) CONST_INT operand, there is no reason why *movti_aarch64 would need to limit itself just to const_int_operand, it can handle const_scalar_int_operand just as well. I can't easily test this on aarch64 though, the patch is completely untested.