PR c++/71257
commitd2542b636215117840d16eed2dda248ec04f1d0c
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 May 2016 16:27:12 +0000 (24 16:27 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 May 2016 16:27:12 +0000 (24 16:27 +0000)
tree1f292e5fd429ffeda74b0073d325d9f4b6f26310
parent7c253acd559bc9ec351ccfab3b0c20167ab4933b
PR c++/71257
* tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.

* semantics.c (finish_omp_clauses) <case OMP_CLAUSE_LINEAR>:
For OMP_CLAUSE_LINEAR_REF don't require type to be
integral or pointer.

* g++.dg/vect/simd-clone-6.cc: New test.
* g++.dg/gomp/declare-simd-6.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@236650 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/declare-simd-6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/vect/simd-clone-6.cc [new file with mode: 0644]
gcc/tree-vect-stmts.c