Commit e86e721f by Ulrich Weigand Committed by Ulrich Weigand

s390.c (s390_decompose_address): Use arg_pointer_rtx for comparison.

	* config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
	for comparison.

From-SVN: r58799
parent 40673d2b
2002-11-04 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
for comparison.
2002-11-04 Aldy Hernandez <aldyh@redhat.com> 2002-11-04 Aldy Hernandez <aldyh@redhat.com>
* hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New. * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
......
...@@ -1605,12 +1605,11 @@ s390_decompose_address (addr, out) ...@@ -1605,12 +1605,11 @@ s390_decompose_address (addr, out)
Thus we don't check the displacement for validity here. If after Thus we don't check the displacement for validity here. If after
elimination the displacement turns out to be invalid after all, elimination the displacement turns out to be invalid after all,
this is fixed up by reload in any case. */ this is fixed up by reload in any case. */
if ((base && REGNO (base) == ARG_POINTER_REGNUM) if (base != arg_pointer_rtx && indx != arg_pointer_rtx)
|| (indx && REGNO (indx) == ARG_POINTER_REGNUM)) {
; if (INTVAL (disp) < 0 || INTVAL (disp) >= 4096)
return FALSE;
else if (INTVAL (disp) < 0 || INTVAL (disp) >= 4096) }
return FALSE;
} }
/* In the small-PIC case, the linker converts @GOT12 /* In the small-PIC case, the linker converts @GOT12
......
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