summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-ifcvt-10.c
blob: 8a4b24ed4c7d271475724b49b296325639779305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR 21272 */
/* { dg-do compile } */
double
foo (int j, double *v, double x)
{
  int i;
  for (i = 0; i < j; i++)
    if (v[i] < x)
      x = v[i];
  return x;
}
/* { dg-final { cleanup-tree-dump "vect" } } */