Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-outer-pr69720.c
blob9ea18eef3fb87f3e328225a69fd6d4f1b274a017
1 #include "tree-vect.h"
3 extern void abort (void);
5 int a[128];
6 double b[128] = { 1., 2., 3., 4. };
8 void __attribute__((noinline)) foo()
10 int i;
11 for (i = 0; i < 128; ++i)
13 double tem1 = b[i];
14 for (int j = 0; j < 32; ++j)
15 tem1 += 1;
16 b[i] = tem1;
17 a[i] = i;
21 int main()
23 check_vect ();
24 foo ();
25 if (b[0] != 33. || b[1] != 34.
26 || b[2] != 35. || b[3] != 36.)
27 abort ();
28 return 0;
31 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { target { vect_double && vect_int } } } } */