Commit 83907fdd by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR rtl-optimization/38948 (unrecognizable insn, postreload.c:395)

	PR target/38948
	* config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
	requests between special registers.

From-SVN: r152740
parent 62afe991
2009-10-14 Hans-Peter Nilsson <hp@axis.com>
PR target/38948
* config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
requests between special registers.
2009-10-13 Eric Botcazou <ebotcazou@adacore.com> 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
* dwarf2out.c (mem_loc_descriptor): Accept UNGT as well. * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
...@@ -630,12 +630,17 @@ enum reg_class ...@@ -630,12 +630,17 @@ enum reg_class
? GENERAL_REGS : (CLASS)) ? GENERAL_REGS : (CLASS))
/* We can't move special registers to and from memory in smaller than /* We can't move special registers to and from memory in smaller than
word_mode. */ word_mode. We also can't move between special registers. Luckily,
#define SECONDARY_RELOAD_CLASS(CLASS, MODE, X) \ -1, as returned by true_regnum for non-sub/registers, is valid as a
(((CLASS) != SPECIAL_REGS && (CLASS) != MOF_REGS) \ parameter to our REGNO_REG_CLASS, returning GENERAL_REGS, so we get
|| GET_MODE_SIZE (MODE) == 4 \ the effect that any X that isn't a special-register is treated as
|| !MEM_P (X) \ a non-empty intersection with GENERAL_REGS. */
? NO_REGS : GENERAL_REGS) #define SECONDARY_RELOAD_CLASS(CLASS, MODE, X) \
((((CLASS) == SPECIAL_REGS || (CLASS) == MOF_REGS) \
&& ((GET_MODE_SIZE (MODE) < 4 && MEM_P (X)) \
|| !reg_classes_intersect_p (REGNO_REG_CLASS (true_regnum (X)), \
GENERAL_REGS))) \
? GENERAL_REGS : NO_REGS)
/* FIXME: Fix regrename.c; it should check validity of replacements, /* FIXME: Fix regrename.c; it should check validity of replacements,
not just with a silly pass-specific macro. We may miss some not just with a silly pass-specific macro. We may miss some
......
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