Commit 0548a9df by Richard Henderson

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

From-SVN: r35566
parent db2e2f48
...@@ -618,9 +618,11 @@ choose_hard_reg_mode (regno, nregs) ...@@ -618,9 +618,11 @@ choose_hard_reg_mode (regno, nregs)
if (found_mode != VOIDmode) if (found_mode != VOIDmode)
return found_mode; return found_mode;
if (HARD_REGNO_NREGS (regno, CCmode) == nregs /* Iterate over all of the CCmodes. */
&& HARD_REGNO_MODE_OK (regno, CCmode)) for (mode = CCmode; mode < NUM_MACHINE_MODES; ++mode)
return CCmode; 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. */ /* We can't find a mode valid for this register. */
return VOIDmode; return VOIDmode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment