mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 21:33:59 +08:00
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:
parent
48024a99e3
commit
f438acf7ce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user