[testsuite] fix array element count
authorAlexandre Oliva <oliva@adacore.com>
Thu, 16 Mar 2023 13:10:54 +0000 (10:10 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 16 Mar 2023 13:10:54 +0000 (10:10 -0300)
This test is similar to pr103116-1.c, but instead of writing to
4*COUNT elements of x, it writes to 8*COUNT elements, but the
definition of x seems to have been adjusted along with the loop.  Fix
the array size so that it doesn't scribble over unrelated
statically-allocated objects.

for  gcc/testsuite/ChangeLog

* gcc.dg/vect/pr103116-2.c (x): Fix array size.

gcc/testsuite/gcc.dg/vect/pr103116-2.c

index 2f4ed0f..aa9797a 100644 (file)
@@ -31,7 +31,7 @@ loop (TYPE *restrict x, TYPE *restrict y)
     }
 }
 
-TYPE x[COUNT * 4];
+TYPE x[COUNT * 8];
 
 int
 main (void)