Commit 00f52f2b by Richard Kenner

(secondary_reload_class): Kernel regs are in same class as user regs.

From-SVN: r6176
parent b80d1946
......@@ -742,7 +742,10 @@ secondary_reload_class (class, mode, in)
/* Otherwise, we can place anything into GENERAL_REGS and can put
GENERAL_REGS into anything. */
if (class == GENERAL_REGS || (regno != -1 && regno < R_BP))
if (class == GENERAL_REGS
|| (regno != -1
&& (regno < R_BP
|| (regno >= R_KR (0) && regno <= R_KR (31)))))
return NO_REGS;
/* We can place 16-bit constants into a special register. */
......
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