i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_45.c
blob7031f237ecceb45057098989aaf12e68e33c1f5a
1 /* { dg-add-options vect_early_break } */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_early_break } */
4 /* { dg-require-effective-target vect_int } */
6 #ifndef N
7 #define N 803
8 #endif
9 unsigned vect_a[N];
10 unsigned vect_b[N];
12 unsigned test4(unsigned x)
14 unsigned ret = 0;
15 for (int i = 0; i < N; i++)
17 vect_b[i] = x + i;
18 if (vect_a[i]*2 > x)
19 break;
20 vect_a[i] = x;
23 return ret;
26 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */