Commit 5e41dd6f by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR target/38016 (-fno-ivopts exposes CRIS port bug, more with -fno-gcse)

	PR target/38016
	* config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
	just MEM_P.

From-SVN: r141614
parent 5e9abf2c
2008-11-05 Hans-Peter Nilsson <hp@axis.com>
PR target/38016
* config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
just MEM_P.
2008-11-05 Martin Jambor <mjambor@suse.cz> 2008-11-05 Martin Jambor <mjambor@suse.cz>
PR middle-end/37861 PR middle-end/37861
......
...@@ -3565,14 +3565,15 @@ cris_expand_pic_call_address (rtx *opp) ...@@ -3565,14 +3565,15 @@ cris_expand_pic_call_address (rtx *opp)
} }
/* Make sure operands are in the right order for an addsi3 insn as /* Make sure operands are in the right order for an addsi3 insn as
generated by a define_split. A MEM as the first operand isn't generated by a define_split. Nothing but REG_P as the first
recognized by addsi3 after reload. OPERANDS contains the operands, operand is recognized by addsi3 after reload. OPERANDS contains
with the first at OPERANDS[N] and the second at OPERANDS[N+1]. */ the operands, with the first at OPERANDS[N] and the second at
OPERANDS[N+1]. */
void void
cris_order_for_addsi3 (rtx *operands, int n) cris_order_for_addsi3 (rtx *operands, int n)
{ {
if (MEM_P (operands[n])) if (!REG_P (operands[n]))
{ {
rtx tem = operands[n]; rtx tem = operands[n];
operands[n] = operands[n + 1]; operands[n] = operands[n + 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