]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
S/390: Disallow SImode in s390_decompose_address
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Tue, 1 Mar 2016 09:27:10 +0000 (09:27 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 1 Mar 2016 09:27:10 +0000 (09:27 +0000)
After Y is never used anymore with SImode operands we can finally
disallow SImode (if != Pmode) in s390_decompose_address.  In fact that
was the whole point of the patch series.

gcc/ChangeLog:

2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390.c (s390_decompose_address): Don't accept SImode
anymore.

From-SVN: r233849

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

index 6c35f0e72628ec42965a75e7e018b37408c9b347..e1975a54380aacc986e579d096b179693b0489f1 100644 (file)
@@ -1,3 +1,8 @@
+2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
+
+       * config/s390/s390.c (s390_decompose_address): Don't accept SImode
+       anymore.
+
 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
 
        * config/s390/constraints.md ("jm8"): New constraint.
index 43219dd8f0225ceebbbf9394ac8b63365dbc4025..8924367a3baf9816620c96421ae338266035dbb4 100644 (file)
@@ -2817,9 +2817,7 @@ s390_decompose_address (rtx addr, struct s390_address *out)
            return false;
          }
 
-      if (!REG_P (base)
-         || (GET_MODE (base) != SImode
-             && GET_MODE (base) != Pmode))
+      if (!REG_P (base) || GET_MODE (base) != Pmode)
        return false;
 
       if (REGNO (base) == STACK_POINTER_REGNUM
@@ -2865,9 +2863,7 @@ s390_decompose_address (rtx addr, struct s390_address *out)
            return false;
          }
 
-      if (!REG_P (indx)
-         || (GET_MODE (indx) != SImode
-             && GET_MODE (indx) != Pmode))
+      if (!REG_P (indx) || GET_MODE (indx) != Pmode)
        return false;
 
       if (REGNO (indx) == STACK_POINTER_REGNUM