PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr70138-2.c
blob01c5dd85014e66fdfccaf9aca77ce6d663279d81
1 #include "tree-vect.h"
3 double u[33];
5 __attribute__((noinline, noclone)) static void
6 foo (int *x)
8 double c = 0.0;
9 int a, b;
10 for (a = 0; a < 33; a++)
12 for (b = 0; b < 33; b++)
13 c = c + u[a];
14 u[a] *= 2.0;
16 *x = c;
19 int
20 main ()
22 int d, e;
23 check_vect ();
24 for (d = 0; d < 33; d++)
26 u[d] = (d + 2);
27 __asm__ volatile ("" : : : "memory");
29 foo (&e);
30 if (e != 33 * (2 + 34) / 2 * 33)
31 __builtin_abort ();
32 return 0;