gen-vect-25.c (n): New variable.

* gcc.dg/tree-ssa/gen-vect-25.c (n): New variable.
	(main): Pass n to main_1 instead.
	* gcc.dg/tree-ssa/gen-vect-28.c (off): New variable.
	(main_1): New function, split off from...
	(main): ...here.  Pass `off' to main_1 instead.

From-SVN: r149119
This commit is contained in:
Nathan Froyd 2009-06-30 21:10:14 +00:00 committed by Nathan Froyd
parent 0db906f185
commit 92ce2174f6
3 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2009-06-30 Nathan Froyd <froydnj@codesourcery.com>
* gcc.dg/tree-ssa/gen-vect-25.c (n): New variable.
(main): Pass n to main_1 instead.
* gcc.dg/tree-ssa/gen-vect-28.c (off): New variable.
(main_1): New function, split off from...
(main): ...here. Pass `off' to main_1 instead.
2009-06-30 Jason Merrill <jason@redhat.com>
PR c++/40595

View File

@ -47,9 +47,11 @@ int main_1 (int n, int *p)
return 0;
}
int main (int n)
static volatile int n = 1;
int main (void)
{
return main_1 (n + 2, &n);
return main_1 (n + 2, (int *) &n);
}
/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */

View File

@ -9,7 +9,7 @@
/* unaligned store. */
int main (int off)
int main_1 (int off)
{
int i;
char ia[N+OFF];
@ -29,6 +29,13 @@ int main (int off)
return 0;
}
static volatile int off = 1;
int main (void)
{
return main_1 (off);
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */