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
This commit is contained in:
Ulrich Weigand 2002-11-04 19:04:46 +00:00 committed by Ulrich Weigand
parent 40673d2b88
commit e86e721fc7
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,8 @@
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>
* hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.

View File

@ -1605,12 +1605,11 @@ s390_decompose_address (addr, out)
Thus we don't check the displacement for validity here. If after
elimination the displacement turns out to be invalid after all,
this is fixed up by reload in any case. */
if ((base && REGNO (base) == ARG_POINTER_REGNUM)
|| (indx && REGNO (indx) == ARG_POINTER_REGNUM))
;
else if (INTVAL (disp) < 0 || INTVAL (disp) >= 4096)
return FALSE;
if (base != arg_pointer_rtx && indx != arg_pointer_rtx)
{
if (INTVAL (disp) < 0 || INTVAL (disp) >= 4096)
return FALSE;
}
}
/* In the small-PIC case, the linker converts @GOT12