summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr27790.c
blob: e8986c4158acbd57eff3a389d8bab13e8aa997fc (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-O -ftree-vectorize -msse2" } */

void binarize (int npixels, unsigned char *b)
{
  int i;
  for (i = 0; i < npixels; i++)
    b[i] = (b[i] > 225 ? 0xff : 0);
}