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,9 +5793,10 @@ pa_secondary_reload (bool in_p, rtx x, enum reg_class rclass, ...@@ -5793,9 +5793,10 @@ 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
&& !SYMBOL_REF_TLS_MODEL (XEXP (op, 0))) && ((GET_CODE (XEXP (op, 0)) == SYMBOL_REF
|| GET_CODE (XEXP (op, 0)) == LABEL_REF) && !SYMBOL_REF_TLS_MODEL (XEXP (op, 0)))
|| GET_CODE (XEXP (op, 0)) == LABEL_REF)
&& GET_CODE (XEXP (op, 1)) == CONST_INT); && GET_CODE (XEXP (op, 1)) == CONST_INT);
break; break;
default: default:
......
...@@ -73,9 +73,10 @@ ...@@ -73,9 +73,10 @@
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
&& !SYMBOL_REF_TLS_MODEL (XEXP (op, 0))) && ((GET_CODE (XEXP (op, 0)) == SYMBOL_REF
|| GET_CODE (XEXP (op, 0)) == LABEL_REF) && !SYMBOL_REF_TLS_MODEL (XEXP (op, 0)))
|| GET_CODE (XEXP (op, 0)) == LABEL_REF)
&& GET_CODE (XEXP (op, 1)) == CONST_INT); && GET_CODE (XEXP (op, 1)) == CONST_INT);
default: default:
return 0; return 0;
......
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