diff options
author | Tom de Vries <tom@codesourcery.com> | 2014-06-04 20:18:47 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2014-06-04 20:18:47 +0000 |
commit | 357ddc7d3df9dbbd89c0e80a7d9dafcbe10a9263 (patch) | |
tree | 732565ae2c1cf4f619a6af09b8bef12a9128826d | |
parent | ca73a1f7f901bc6111ff13ca8b8d29027e72e7fa (diff) | |
download | gcc-357ddc7d3df9dbbd89c0e80a7d9dafcbe10a9263.zip gcc-357ddc7d3df9dbbd89c0e80a7d9dafcbe10a9263.tar.gz gcc-357ddc7d3df9dbbd89c0e80a7d9dafcbe10a9263.tar.bz2 |
Use INTVAL only on CONST_INT in addptrdi3 and addptrsi3
2014-06-04 Tom de Vries <tom@codesourcery.com>
* config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
CONST_INT.
From-SVN: r211246
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/s390.md | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca574c0..2a23c31 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-06-04 Tom de Vries <tom@codesourcery.com> + + * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on + CONST_INT. + 2014-06-04 Marc Glisse <marc.glisse@inria.fr> PR tree-optimization/61385 diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md index b17c1fa..5fdbdbe 100644 --- a/gcc/config/s390/s390.md +++ b/gcc/config/s390/s390.md @@ -5045,10 +5045,10 @@ (match_operand:DI 2 "nonmemory_operand" "")))] "TARGET_64BIT" { - HOST_WIDE_INT c = INTVAL (operands[2]); - if (GET_CODE (operands[2]) == CONST_INT) { + HOST_WIDE_INT c = INTVAL (operands[2]); + if (!CONST_OK_FOR_CONSTRAINT_P (c, 'K', "K") && !CONST_OK_FOR_CONSTRAINT_P (c, 'O', "Os")) { @@ -5071,10 +5071,10 @@ (use (const_int 0))])] "!TARGET_64BIT" { - HOST_WIDE_INT c = INTVAL (operands[2]); - if (GET_CODE (operands[2]) == CONST_INT) { + HOST_WIDE_INT c = INTVAL (operands[2]); + if (!CONST_OK_FOR_CONSTRAINT_P (c, 'K', "K") && !CONST_OK_FOR_CONSTRAINT_P (c, 'O', "Os")) { |