summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20070827-1.c
blob: 5dd009974ac6b032cbe4f814cceffb3ebf573f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR rtl-optimization/33148 */

int
foo (unsigned int *p, int *q, unsigned int w, unsigned int b)
{
  unsigned int i;
  int mask;

  if (q[0] < q[1])
    mask = 0xff;
  else
    mask = 0;

  for (i = 0; 8 * i < w; i++)
    {
      b ^= mask;
      *p++ = b;
    }
  return 0;
}