1 /* PR tree-optimization/98848 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_int } */
4
5 short a[9000];
6
7 int
8 foo (void)
9 {
10 int b = a[0];
11 int i;
12 for (i = 1; i < 9000; i ++)
13 if (a[i] < b)
14 b = a[i];
15 return b;
16 }
17
18 /* { dg-final { scan-tree-dump-times "vectorized 1 loop" 1 "vect" { xfail { vect_no_int_add || vect_no_int_min_max } } } } */