public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Olivier Hainque <hainque@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-6078] Fix static array size in gcc.dg/vect/vect-simd-20.c
Date: Mon, 20 Dec 2021 16:41:26 +0000 (GMT)	[thread overview]
Message-ID: <20211220164126.458563858C60@sourceware.org> (raw)

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 ()


                 reply	other threads:[~2021-12-20 16:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211220164126.458563858C60@sourceware.org \
    --to=hainque@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).