Don't allow unsafe reductions in graphite
authorTom de Vries <tom@codesourcery.com>
Fri, 24 Jul 2015 20:55:22 +0000 (20:55 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 24 Jul 2015 20:55:22 +0000 (20:55 +0000)
commite6df850973c9cc688cad4d9bff4c1260c028025d
tree4b8350baf0dc6269f524db5a85b88dd0a48113aa
parent274d8c11f37abd11a3a43b5bd129c194b0daeafc
Don't allow unsafe reductions in graphite

2015-07-24  Tom de Vries  <tom@codesourcery.com>

* graphite-sese-to-poly.c (is_reduction_operation_p): Limit
flag_associative_math to FLOAT_TYPE_P.  Honour
TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.

* gcc.dg/graphite/block-1.c: Xfail scan.
* gcc.dg/graphite/interchange-12.c: Same.
* gcc.dg/graphite/interchange-14.c: Same.
* gcc.dg/graphite/interchange-15.c: Same.
* gcc.dg/graphite/interchange-9.c: Same.
* gcc.dg/graphite/interchange-mvt.c: Same.
* gcc.dg/graphite/uns-block-1.c: New test.
* gcc.dg/graphite/uns-interchange-12.c: New test.
* gcc.dg/graphite/uns-interchange-14.c: New test.
* gcc.dg/graphite/uns-interchange-15.c: New test.
* gcc.dg/graphite/uns-interchange-9.c: New test.
* gcc.dg/graphite/uns-interchange-mvt.c: New test.

From-SVN: r226193
15 files changed:
gcc/ChangeLog
gcc/graphite-sese-to-poly.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/block-1.c
gcc/testsuite/gcc.dg/graphite/interchange-12.c
gcc/testsuite/gcc.dg/graphite/interchange-14.c
gcc/testsuite/gcc.dg/graphite/interchange-15.c
gcc/testsuite/gcc.dg/graphite/interchange-9.c
gcc/testsuite/gcc.dg/graphite/interchange-mvt.c
gcc/testsuite/gcc.dg/graphite/uns-block-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/uns-interchange-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/uns-interchange-14.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/uns-interchange-15.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/uns-interchange-9.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/uns-interchange-mvt.c [new file with mode: 0644]