Commit 16310b3f by Richard Biener Committed by Richard Biener

re PR target/68482 (No vectorization for x86-64)

2015-11-23  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/68482
	* gcc.dg/vect/pr68482.c: New testcase.

From-SVN: r230740
parent 55aea9f5
2015-11-23 Richard Biener <rguenther@suse.de> 2015-11-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/68482
* gcc.dg/vect/pr68482.c: New testcase.
2015-11-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/68445 PR tree-optimization/68445
* gcc.dg/vect/pr68445.c: New testcase. * gcc.dg/vect/pr68445.c: New testcase.
......
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
void test(int* input, int* out, unsigned x1, unsigned x2)
{
unsigned i, j;
unsigned end = x1;
for(i = j = 0; i < 1000; i++) {
int sum = 0;
end += x2;
for( ; j < end; j++)
sum += input[j];
out[i] = sum;
}
}
/* { dg-final { scan-tree-dump "vectorized 1 loops" "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