Message ID | 87r47k15qd.fsf@redhat.com |
---|---|
State | New |
Headers | show |
Index: gcc/config/mn10300/mn10300.c =================================================================== --- gcc/config/mn10300/mn10300.c (revision 207416) +++ gcc/config/mn10300/mn10300.c (working copy) @@ -2216,6 +2214,11 @@ enum reg_class to = (enum reg_class) ito; enum reg_class scratch, test; + /* Make sure that moves via the extended register class + are too expensive to ever be chosen for the MN10300. */ + if (! TARGET_AM33 && (ifrom == EXTENDED_REGS || ito == EXTENDED_REGS)) + return 100; + /* Simplify the following code by unifying the fp register classes. */ if (to == FP_ACC_REGS) to = FP_REGS;