Merge branches/gcc-4_8-branch rev 216856
[official-gcc.git] / gcc-4_8-branch / gcc / testsuite / gcc.dg / vect / pr60196-2.c
blobb2059c20cd55119e0c91a085f84320ed278c43da
1 /* PR tree-optimization/63189 */
2 /* { dg-do run } */
4 #include "tree-vect.h"
6 static const short a[8] = {1, 1, 1, 1, 1, 1, 1, 1 };
7 static const unsigned char b[8] = {0, 0, 0, 0, 0, 0, 0, 0 };
9 __attribute__((noinline, noclone)) static int
10 bar (void)
12 int sum = 0, i;
13 for (i = 0; i < 8; ++i)
14 sum += a[i] * b[i];
15 return sum;
18 __attribute__((noinline, noclone)) void
19 foo (void)
21 if (bar () != 0)
22 abort ();
25 int
26 main ()
28 check_vect ();
29 foo ();
30 return 0;
33 /* { dg-final { cleanup-tree-dump "vect" } } */