* regclass.c (choose_hard_reg_mode): Iterate over all CC modes.

From-SVN: r35566
This commit is contained in:
Richard Henderson 2000-08-08 02:18:47 -07:00
parent db2e2f480c
commit 0548a9df61
1 changed files with 5 additions and 3 deletions

View File

@ -618,9 +618,11 @@ choose_hard_reg_mode (regno, nregs)
if (found_mode != VOIDmode)
return found_mode;
if (HARD_REGNO_NREGS (regno, CCmode) == nregs
&& HARD_REGNO_MODE_OK (regno, CCmode))
return CCmode;
/* Iterate over all of the CCmodes. */
for (mode = CCmode; mode < NUM_MACHINE_MODES; ++mode)
if (HARD_REGNO_NREGS (regno, mode) == nregs
&& HARD_REGNO_MODE_OK (regno, mode))
return mode;
/* We can't find a mode valid for this register. */
return VOIDmode;