Add a vect_variable_length target selector

Programming / Compilers / GCC - rsandifo [138bc75d-0d04-0410-961f-82ee72b054a4] - 9 November 2017 15:18 EST

This patch adds a target selector for variable-length vectors. Initially it's always false, but the SVE patch provides a case in which it's true.

2017-11-09 Richard Sandiford Alan Hayward David Sherwood

gcc/
- doc/sourcebuild.texi (vect_variable_length): Document.

gcc/testsuite/
- lib/target-supports.exp (check_effective_target_vect_variable_length): New proc.
- gcc.dg/vect/pr60482.c: XFAIL test for no epilog loop if
vect_variable_length.
- gcc.dg/vect/slp-reduc-6.c: XFAIL two-operation SLP if
vect_variable_length.
- gcc.dg/vect/vect-alias-check-5.c: XFAIL alias optimization if
vect_variable_length.
- gfortran.dg/vect/fast-math-mgrid-resid.f: XFAIL predictive commoning optimization if vect_variable_length.

c36e5a0cb8d Add a vect_variable_length target selector
gcc/ChangeLog | 6 ++++++
gcc/doc/sourcebuild.texi | 3 +++
gcc/testsuite/ChangeLog | 15 +++++++++++++++
gcc/testsuite/gcc.dg/vect/pr60482.c | 4 +++-
gcc/testsuite/gcc.dg/vect/slp-reduc-6.c | 2 +-
gcc/testsuite/gcc.dg/vect/vect-alias-check-5.c | 2 +-
gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f | 4 ++--
gcc/testsuite/lib/target-supports.exp | 6 ++++++
8 files changed, 37 insertions(+), 5 deletions(-)

Upstream: gcc.gnu.org


  • Share