diff options
author | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2016-03-01 09:27:10 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2016-03-01 09:27:10 +0000 |
commit | c64181a8c8e342a82b1edddacca7688e39042d03 (patch) | |
tree | 539f9c7d97e47b6dffb27d6bbd4510866151a0fc /gcc | |
parent | 708c0910a8f5bf48ec9ad54456dca3fc73360631 (diff) | |
download | gcc-c64181a8c8e342a82b1edddacca7688e39042d03.zip gcc-c64181a8c8e342a82b1edddacca7688e39042d03.tar.gz gcc-c64181a8c8e342a82b1edddacca7688e39042d03.tar.bz2 |
S/390: Disallow SImode in s390_decompose_address
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6c35f0e..e1975a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. * config/s390/predicates.md ("const_int_8bitset_operand"): New predicate. * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 43219dd..8924367 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -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 |