]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-optimization/114027 - fix testcase
authorRichard Biener <rguenther@suse.de>
Tue, 26 Mar 2024 08:46:06 +0000 (09:46 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 16 May 2024 09:55:47 +0000 (11:55 +0200)
The following fixes out-of-bounds read in the testcase.

PR tree-optimization/114027
* gcc.dg/vect/pr114027.c: Fix iteration count.

(cherry picked from commit 4470611e20f3217ee81647b01fda65b6a62229aa)

gcc/testsuite/gcc.dg/vect/pr114027.c

index ead9cdd982d7361d8f5387835494a456c4550dba..b3f3e30e15fcdb858661b8a06f990e6382f7d6a6 100644 (file)
@@ -20,7 +20,7 @@ int f[] = { 1, 1, 1, 1, 1, 1, 1, 1,
 int
 main ()
 {
-  if (foo (f, 16) != 2)
+  if (foo (f, 8) != 2)
     __builtin_abort ();
   return 0;
 }