public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6078] Fix static array size in gcc.dg/vect/vect-simd-20.c
@ 2021-12-20 16:41 Olivier Hainque
  0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2021-12-20 16:41 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7d5d5032c7200714388db63c7a5676b6ab3e040e

commit r12-6078-g7d5d5032c7200714388db63c7a5676b6ab3e040e
Author: Olivier Hainque <hainque@adacore.com>
Date:   Wed Nov 3 14:18:16 2021 +0000

    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.

Diff:
---
 gcc/testsuite/gcc.dg/vect/vect-simd-20.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-20.c b/gcc/testsuite/gcc.dg/vect/vect-simd-20.c
index c85f05f61c6..57217c8a6ba 100644
--- 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 ()


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-20 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 16:41 [gcc r12-6078] Fix static array size in gcc.dg/vect/vect-simd-20.c Olivier Hainque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).