Use gather loads for strided accesses
[official-gcc.git] / gcc / testsuite / gcc.target / nvptx / slp-2-run.c
blobf9841a6b11ac3818da033c7de40fe0acdfb45016
1 /* { dg-do run } */
2 /* { dg-options "-O2 -ftree-slp-vectorize" } */
4 #include "slp-2.c"
6 int
7 main(void)
9 unsigned int i;
10 for (i = 0; i < 1000; i += 1)
12 p[i] = i;
13 p2[i] = 0;
16 foo ();
18 for (i = 0; i < 1000; i += 1)
19 if (p2[i] != i)
20 return 1;
22 return 0;