PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr53185-2.c
blob6057c69a24a81be20ecc5582685fb4516f47803d
1 #include "tree-vect.h"
3 void __attribute__((noinline,noclone))
4 fn1 (int * __restrict f, int * __restrict d, unsigned short a, int c)
6 unsigned short e;
7 for (e = 0; e < a; ++e)
8 f[e] = d[e * c];
11 extern void abort (void);
13 int main ()
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)
22 fn1 (&a[off], &b[off], 32 - off, 3);
23 for (i = 0; i < 32 - off; ++i)
24 if (a[off+i] != b[off+i*3])
25 abort ();
27 return 0;