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

typedef unsigned short ush;
extern ush prev[];

void fill_window ()
{
  register unsigned n, m;

  for (n = 0; n < 32768; n++)
    {
      m = prev[n];
      prev[n] = (ush) (m >= 0x8000 ? m - 0x8000 : 0);
    }
}