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.
This commit is contained in:
Tamar Christina 2024-04-16 20:56:26 +01:00
parent 48024a99e3
commit f438acf7ce

View File

@ -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;