Commit 880f987e by Richard Guenther Committed by Richard Biener

vect-64.c: Fix out-of-bound array accesses.

2010-08-26  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/vect/vect-64.c: Fix out-of-bound array accesses.
	* gcc.dg/vect/fast-math-slp-27.c: Likewise.
	* gcc.dg/vect/no-section-anchors-vect-64.c: Likewise.
	* gcc.dg/vect/vect-91.c: Likewise.
	* gcc.dg/vect/vect-peel-1.c: Likewise.
	* gcc.dg/vect/vect-peel-2.c: Likewise.
	* gcc.dg/vect/vect-peel-4.c: Likewise.

From-SVN: r163563
parent 604bbfb7
2010-08-26 Richard Guenther <rguenther@suse.de>
* gcc.dg/vect/vect-64.c: Fix out-of-bound array accesses.
* gcc.dg/vect/fast-math-slp-27.c: Likewise.
* gcc.dg/vect/no-section-anchors-vect-64.c: Likewise.
* gcc.dg/vect/vect-91.c: Likewise.
* gcc.dg/vect/vect-peel-1.c: Likewise.
* gcc.dg/vect/vect-peel-2.c: Likewise.
* gcc.dg/vect/vect-peel-4.c: Likewise.
2010-08-25 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2010-08-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/41859 PR libfortran/41859
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
float x[256]; float x[2*256+1];
void foo(void) void foo(void)
{ {
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
int ib[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}; int ib[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
int ia[N][4][N+1]; int ia[N][4][N+1];
int ic[N][N][3][13]; int ic[N][N][3][N+1];
int id[N][N][N]; int id[N][N][N+1];
__attribute__ ((noinline)) __attribute__ ((noinline))
int main1 () int main1 ()
......
...@@ -12,8 +12,8 @@ int main1 () ...@@ -12,8 +12,8 @@ int main1 ()
{ {
int i, j; int i, j;
int ia[N][4][N+1]; int ia[N][4][N+1];
int ic[N][N][3][13]; int ic[N][N][3][N+1];
int id[N][N][N]; int id[N][N][N+1];
/* Multidimensional array. Not aligned: vectorizable. */ /* Multidimensional array. Not aligned: vectorizable. */
for (i = 0; i < N; i++) for (i = 0; i < N; i++)
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#define N 256 #define N 256
extern int a[N]; extern int a[N+20];
/* The alignment of 'pa' is unknown. /* The alignment of 'pa' is unknown.
Yet we do know that both the read access and write access have Yet we do know that both the read access and write access have
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#define N 128 #define N 128
int ib[N+5]; int ib[N+7];
__attribute__ ((noinline)) __attribute__ ((noinline))
int main1 () int main1 ()
...@@ -38,7 +38,7 @@ int main (void) ...@@ -38,7 +38,7 @@ int main (void)
check_vect (); check_vect ();
for (i = 0; i < N+5; i++) for (i = 0; i <= N+6; i++)
ib[i] = i; ib[i] = i;
return main1 (); return main1 ();
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
/* unaligned store. */ /* unaligned store. */
int ib[N+5]; int ib[N+7];
__attribute__ ((noinline)) __attribute__ ((noinline))
int main1 () int main1 ()
...@@ -39,7 +39,7 @@ int main (void) ...@@ -39,7 +39,7 @@ int main (void)
check_vect (); check_vect ();
for (i = 0; i < N+5; i++) for (i = 0; i <= N+6; i++)
ib[i] = i; ib[i] = i;
return main1 (); return main1 ();
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#define N 128 #define N 128
int ib[N+5]; int ib[N+7];
__attribute__ ((noinline)) __attribute__ ((noinline))
int main1 () int main1 ()
...@@ -35,7 +35,7 @@ int main (void) ...@@ -35,7 +35,7 @@ int main (void)
check_vect (); check_vect ();
for (i = 0; i < N+5; i++) for (i = 0; i <= N+6; i++)
ib[i] = i; ib[i] = i;
return main1 (); return main1 ();
......
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