Commit 85ed9a33 by John David Anglin Committed by John David Anglin

predicates.md (symbolic_operand): Require a CONST symbolic operand to be a PLUS expression.

	* config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
	operand to be a PLUS expression.
	* config/pa/pa.c (pa_secondary_reload): Likewise.

From-SVN: r151646
parent 9258b4c1
2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
operand to be a PLUS expression.
* config/pa/pa.c (pa_secondary_reload): Likewise.
2009-09-11 Jakub Jelinek <jakub@redhat.com> 2009-09-11 Jakub Jelinek <jakub@redhat.com>
* combine.c (propagate_for_debug_subst): Call wrap_constant on top. * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
......
...@@ -5793,7 +5793,8 @@ pa_secondary_reload (bool in_p, rtx x, enum reg_class rclass, ...@@ -5793,7 +5793,8 @@ pa_secondary_reload (bool in_p, rtx x, enum reg_class rclass,
break; break;
case CONST: case CONST:
op = XEXP (x, 0); op = XEXP (x, 0);
is_symbolic = (((GET_CODE (XEXP (op, 0)) == SYMBOL_REF is_symbolic = (GET_CODE (op) == PLUS
&& ((GET_CODE (XEXP (op, 0)) == SYMBOL_REF
&& !SYMBOL_REF_TLS_MODEL (XEXP (op, 0))) && !SYMBOL_REF_TLS_MODEL (XEXP (op, 0)))
|| GET_CODE (XEXP (op, 0)) == LABEL_REF) || GET_CODE (XEXP (op, 0)) == LABEL_REF)
&& GET_CODE (XEXP (op, 1)) == CONST_INT); && GET_CODE (XEXP (op, 1)) == CONST_INT);
......
...@@ -73,7 +73,8 @@ ...@@ -73,7 +73,8 @@
return 1; return 1;
case CONST: case CONST:
op = XEXP (op, 0); op = XEXP (op, 0);
return (((GET_CODE (XEXP (op, 0)) == SYMBOL_REF return (GET_CODE (op) == PLUS
&& ((GET_CODE (XEXP (op, 0)) == SYMBOL_REF
&& !SYMBOL_REF_TLS_MODEL (XEXP (op, 0))) && !SYMBOL_REF_TLS_MODEL (XEXP (op, 0)))
|| GET_CODE (XEXP (op, 0)) == LABEL_REF) || GET_CODE (XEXP (op, 0)) == LABEL_REF)
&& GET_CODE (XEXP (op, 1)) == CONST_INT); && GET_CODE (XEXP (op, 1)) == CONST_INT);
......
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