i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_32.c
blob038be402c2b8ce4c797465214217788cb2f50b17
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 /* { dg-additional-options "-Ofast" } */
8 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
10 #ifndef N
11 #define N 1024
12 #endif
13 unsigned vect_a[N];
14 unsigned vect_b[N];
16 unsigned test4(unsigned x)
18 unsigned ret = 0;
19 for (int i = 0; i < N; i++)
21 vect_b[i] = x + i;
22 if (vect_a[i] > x)
23 return vect_a[i];
24 vect_a[i] = x;
25 ret = vect_a[i] + vect_b[i];
27 return ret;
30 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */