2013-06-03 Teresa Johnson <tejohnson@google.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-30.c
bloba587780364fa3440994b35cb1217fb6803bd9bcf
1 /* { dg-require-effective-target vect_int } */
3 int a[32];
5 void __attribute__((noinline))
6 test1(void)
8 a[0] = 1;
9 a[1] = 1;
10 a[2] = 1;
11 a[3] = 1;
12 a[4] = 1;
13 a[5] = 1;
14 a[6] = 1;
15 a[7] = 1;
16 a[8] = 1;
17 a[9] = 1;
18 a[10] = 1;
19 a[11] = 1;
20 a[12] = 1;
21 a[13] = 1;
22 a[14] = 1;
23 a[15] = 1;
24 a[16] = 1;
25 a[17] = 1;
26 a[18] = 1;
27 a[19] = 1;
28 a[20] = 1;
29 a[21] = 1;
30 a[22] = 1;
31 a[23] = 1;
32 a[24] = 1;
33 a[25] = 1;
34 a[26] = 1;
35 a[27] = 1;
36 a[28] = 1;
37 a[29] = 1;
38 a[30] = 1;
39 a[31] = 1;
40 asm ("" : : : "memory");
41 a[21] = 0;
44 int main() { test1(); return a[21]; }
46 /* { dg-final { scan-tree-dump-times "Vectorized basic-block" 1 "slp" } } */
47 /* { dg-final { cleanup-tree-dump "slp" } } */