* config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Nov 2002 19:04:46 +0000 (19:04 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Nov 2002 19:04:46 +0000 (19:04 +0000)
for comparison.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58799 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/s390/s390.c

index 9b4c143..dfda5de 100644 (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.
index 0f9c5a1..67f59d5 100644 (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