* regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
From-SVN: r35566
This commit is contained in:
parent
db2e2f480c
commit
0548a9df61
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue