Fix static array size in gcc.dg/vect/vect-simd-20.c

10000 / 78 is strictly greater than 128 so we will
actually do 128+1 strides in foo() for s == 78 and p[]
needs to be dimensioned accordingly.

2021-12-20  Olivier Hainque  <hainque@adacore.com>

gcc/testsuite/
	* gcc.dg/vect/vect-simd-20.c: Fix size of p[]
	to accommodate the number of strides performed
	by foo() for s == 78.
This commit is contained in:
Olivier Hainque 2021-11-03 14:18:16 +00:00
parent c9c466ea33
commit 7d5d5032c7

View file

@ -18,7 +18,7 @@ foo (int s, int m, int n, int *p)
return r;
}
int p[10000 / 78 * 7];
int p[((10000 / 78) + 1) * 7];
int
main ()