[gcc r11-11521] tree-optimization/114027 - fix testcase
Richard Biener
rguenth@gcc.gnu.org
Fri Jun 21 09:22:04 GMT 2024
https://gcc.gnu.org/g:70ebb2ecbbcdfc40e0beff95dd11c9d678694888
commit r11-11521-g70ebb2ecbbcdfc40e0beff95dd11c9d678694888
Author: Richard Biener <rguenther@suse.de>
Date: Tue Mar 26 09:46:06 2024 +0100
tree-optimization/114027 - fix testcase
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)
Diff:
---
gcc/testsuite/gcc.dg/vect/pr114027.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/vect/pr114027.c b/gcc/testsuite/gcc.dg/vect/pr114027.c
index ead9cdd982d..b3f3e30e15f 100644
--- a/gcc/testsuite/gcc.dg/vect/pr114027.c
+++ b/gcc/testsuite/gcc.dg/vect/pr114027.c
@@ -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;
}
More information about the Gcc-cvs
mailing list