Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-124.c

raw
1 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
2 #include "tree-vect.h"
3
4 #ifndef N
5 #define N 64
6 #endif
7
8 int a[N];
9
10 __attribute__((noinline, noclone)) void
11 foo (int x)
12 {
13 int i;
14 for (i = 0; i < N; i++, x += 3)
15 a[i] = x;
16 }
17
18 int
19 main ()
20 {
21 int i;
22
23 check_vect ();
24 foo (6);
25 #pragma GCC novector
26 for (i = 0; i < N; i++)
27 if (a[i] != i * 3 + 6)
28 abort ();
29 return 0;
30 }
31
32 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */