aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-ifcvt-10.c
blob: 0fbb97f5157b29c620bb2e207aa6dbdeb8804d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 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;
}