Commit 9a81c5b7 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR target/7177 (cris-axis-elf: ICE at -O2, unrecognized insn, sign-extend mem)

	PR target/7177
	* config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
	of indirections for register inside sign-extended mem part.

From-SVN: r55163
parent 2a91582c
2002-07-01 Hans-Peter Nilsson <hp@axis.com>
PR target/7177
* config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
of indirections for register inside sign-extended mem part.
2002-07-01 Roger Sayle <roger@eyesopen.com> 2002-07-01 Roger Sayle <roger@eyesopen.com>
* tree.h: Modify builtin_function interface to take an extra * tree.h: Modify builtin_function interface to take an extra
......
...@@ -1291,13 +1291,13 @@ struct cum_args {int regs;}; ...@@ -1291,13 +1291,13 @@ struct cum_args {int regs;};
something_reloaded = 1; \ something_reloaded = 1; \
} \ } \
\ \
if (REG_P (XEXP (XEXP (X, 0), 0)) \ if (REG_P (XEXP (XEXP (XEXP (X, 0), 0), 0)) \
&& (REGNO (XEXP (XEXP (X, 0), 0)) \ && (REGNO (XEXP (XEXP (XEXP (X, 0), 0), 0)) \
>= FIRST_PSEUDO_REGISTER)) \ >= FIRST_PSEUDO_REGISTER)) \
{ \ { \
/* First one is a pseudo - reload that. */ \ /* First one is a pseudo - reload that. */ \
push_reload (XEXP (XEXP (X, 0), 0), NULL_RTX, \ push_reload (XEXP (XEXP (XEXP (X, 0), 0), 0), NULL_RTX, \
&XEXP (XEXP (X, 0), 0), NULL, \ &XEXP (XEXP (XEXP (X, 0), 0), 0), NULL, \
GENERAL_REGS, \ GENERAL_REGS, \
GET_MODE (X), VOIDmode, 0, 0, OPNUM, TYPE); \ GET_MODE (X), VOIDmode, 0, 0, OPNUM, TYPE); \
something_reloaded = 1; \ something_reloaded = 1; \
......
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