Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / nvptx / slp.c
blobca8191cccce34481d724c9995c2d10844a6f62fb
1 /* { dg-do assemble } */
2 /* { dg-options "-O2 -ftree-slp-vectorize -save-temps" } */
4 int p[1000] __attribute__((aligned(8)));
5 int p2[1000] __attribute__((aligned(8)));
7 void __attribute__((noinline, noclone))
8 foo ()
10 int a, b;
12 int i;
13 for (i = 0; i < 1000; i += 2)
15 a = p[i];
16 b = p[i+1];
18 p2[i] = a;
19 p2[i+1] = b;
23 /* { dg-final { scan-assembler "ld.v2.u32" } } */
24 /* { dg-final { scan-assembler "st.v2.u32" } } */