PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr59594.c
blob947fa4c0c301d98cbdfeb5da541482858b69180f
1 /* PR tree-optimization/59594 */
3 #include "tree-vect.h"
5 #define N 1024
6 int b[N + 2];
8 int
9 main ()
11 int i;
12 check_vect ();
13 for (i = 0; i < N + 1; i++)
15 b[i] = i;
16 asm ("");
18 for (i = N; i >= 0; i--)
20 b[i + 1] = b[i];
21 b[i] = 1;
23 if (b[0] != 1)
24 __builtin_abort ();
25 for (i = 0; i < N; i++)
26 if (b[i + 1] != i)
27 __builtin_abort ();
28 return 0;