Debian Codegraph @

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

raw
1 #include "tree-vect.h"
2
3 void __attribute__((noinline,noclone))
4 fn1 (int * __restrict f, int * __restrict d, unsigned short a, int c)
5 {
6 unsigned short e;
7 for (e = 0; e < a; ++e)
8 f[e] = d[e * c];
9 }
10
11 extern void abort (void);
12
13 int main ()
14 {
15 int a[32], b[3 * 32];
16 int i, off;
17 check_vect ();
18 for (i = 0; i < 3 * 32; ++i)
19 b[i] = i;
20 for (off = 0; off < 8; ++off)
21 {
22 fn1 (&a[off], &b[off], 32 - off, 3);
23 #pragma GCC novector
24 for (i = 0; i < 32 - off; ++i)
25 if (a[off+i] != b[off+i*3])
26 abort ();
27 }
28 return 0;
29 }
30