mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 05:10:25 +08:00
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:
parent
0db906f185
commit
92ce2174f6
@ -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
|
||||
|
@ -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" } } */
|
||||
|
@ -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" } } */
|
||||
|
Loading…
x
Reference in New Issue
Block a user