From adda6449c4137053ffc393e8d6b8bbf2da54c5e6 Mon Sep 17 00:00:00 2001 From: froydnj Date: Tue, 30 Jun 2009 21:10:14 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149119 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c | 6 ++++-- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c | 9 ++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a8d5141..ebdf601 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2009-06-30 Nathan Froyd + + * 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 PR c++/40595 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c index e7cb925..ee7cf02 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c index 7762391..33814da 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c @@ -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" } } */ -- 2.7.4