Commit a681b758 by Tom de Vries Committed by Tom de Vries

Add gcc.dg/vect/pr62171.c

2015-09-28  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/vect/pr62171.c: New test.

From-SVN: r228193
parent 7b954766
2015-09-28 Tom de Vries <tom@codesourcery.com>
* gcc.dg/vect/pr62171.c: New test.
2015-09-27 David Edelsohn <dje.gcc@gmail.com>
* g++.dg/debug/dwarf2/pr44641.C: Revert line number change. Remove
......
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details" } */
/* { dg-require-effective-target vect_double } */
struct omp_data_i
{
double *__restrict__ results;
double *__restrict__ pData;
double *__restrict__ coeff;
};
#define nEvents 1000000
double __attribute__((noinline, noclone))
f (struct omp_data_i *__restrict__ p, int argc)
{
int idx;
for (idx = 0; idx < nEvents; idx++)
((p->results))[idx] = (*(p->coeff)) * ((p->pData))[idx];
return ((p->results))[argc];
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-not "versioned" "vect" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment