public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9997] testsuite: Fix data check loop on vect-early-break_124-pr114403.c
@ 2024-04-16 19:56 Tamar Christina
  0 siblings, 0 replies; only message in thread
From: Tamar Christina @ 2024-04-16 19:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f438acf7ce2e6cb862cf62f2543c36639e2af233

commit r14-9997-gf438acf7ce2e6cb862cf62f2543c36639e2af233
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Tue Apr 16 20:56:26 2024 +0100

    testsuite: Fix data check loop on vect-early-break_124-pr114403.c
    
    The testcase had the wrong indices in the buffer check loop.
    
    gcc/testsuite/ChangeLog:
    
            PR tree-optimization/114403
            * gcc.dg/vect/vect-early-break_124-pr114403.c: Fix check loop.

Diff:
---
 gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c
index 1751296ab81..51abf245ccb 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c
@@ -68,8 +68,8 @@ int main ()
 
   int store_size = sizeof(PV);
 #pragma GCC novector
-  for (int i = 0; i < NUM - 1; i+=store_size)
-    if (0 != __builtin_memcmp (buffer+i, (char*)&tmp[i].Val, store_size))
+  for (int i = 0; i < NUM - 1; i++)
+    if (0 != __builtin_memcmp (buffer+(i*store_size), (char*)&tmp[i].Val, store_size))
       __builtin_abort ();
 
   return 0;

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

only message in thread, other threads:[~2024-04-16 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 19:56 [gcc r14-9997] testsuite: Fix data check loop on vect-early-break_124-pr114403.c Tamar Christina

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