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)
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;
......
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