summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/no-trapping-math-1.c
blob: e9d9570146b29d92621a5b9c18050275a3c4e2a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test for pr30485.  */
/* { dg-do compile } */
/* { dg-require-effective-target vect_condition } */
void
foo (float a[32], float b[2][32])
{
  int i;
  for (i = 0; i < 32; i++)
    a[i] = (b[0][i] > b[1][i]) ? b[0][i] : b[1][i];
}

/* { dg-final { cleanup-tree-dump "vect" } } */