summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr28900.c
blob: 75555f46ec0d40df5dd61b26a844d653efaac982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-ftree-vectorize" } */

int synths_ ( float * rc)
{
  float r1, r2;
  int i;
  for (i = 0; i < 128; ++i)
    {
      r2 = rc[i];
      r1 = ((r2) <= (.99f) ? (r2) : (.99f));
      rc[i] = ((r1) >= (-.99f) ? (r1) : (-.99f));
    }
}