[committed][RISC-V] Fix test expectations after recent late-combine changes
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_43.c
blob7e9f635a0b5a8f6fb5da5d7cc6a426f343af4b56
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 802
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+=2)
17 vect_b[i] = x + i;
18 vect_b[i+1] = x + i + 1;
19 if (vect_a[i]*2 > x)
20 break;
21 if (vect_a[i+1]*2 > x)
22 break;
23 vect_a[i] = x;
24 vect_a[i+1] = x;
27 return ret;
30 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */