Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr60196-2.c

raw
1 /* PR tree-optimization/63189 */
2
3 #include "tree-vect.h"
4
5 static const short a[8] = {1, 1, 1, 1, 1, 1, 1, 1 };
6 static const unsigned char b[8] = {0, 0, 0, 0, 0, 0, 0, 0 };
7
8 __attribute__((noinline, noclone)) static int
9 bar (void)
10 {
11 int sum = 0, i;
12 for (i = 0; i < 8; ++i)
13 sum += a[i] * b[i];
14 return sum;
15 }
16
17 __attribute__((noinline, noclone)) void
18 foo (void)
19 {
20 if (bar () != 0)
21 abort ();
22 }
23
24 int
25 main ()
26 {
27 check_vect ();
28 foo ();
29 return 0;
30 }
31