projects
/
test_jj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9c466e
)
Fix static array size in gcc.dg/vect/vect-simd-20.c
author
Olivier Hainque
<hainque@adacore.com>
Wed, 3 Nov 2021 14:18:16 +0000
(14:18 +0000)
committer
Olivier Hainque
<hainque@adacore.com>
Mon, 20 Dec 2021 16:41:09 +0000
(16:41 +0000)
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.
gcc/testsuite/gcc.dg/vect/vect-simd-20.c
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.dg/vect/vect-simd-20.c
b/gcc/testsuite/gcc.dg/vect/vect-simd-20.c
index
c85f05f
..
57217c8
100644
(file)
--- a/
gcc/testsuite/gcc.dg/vect/vect-simd-20.c
+++ b/
gcc/testsuite/gcc.dg/vect/vect-simd-20.c
@@
-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 ()