https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109858
--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> --- Created attachment 55091 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55091&action=edit Only use NO_REGS in cost calculation when !hard_regno_mode_ok for GENERAL_REGS and mode.