aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr33648.c
blob: f5da55cd47cee2221bc3b0d9a8a480744e3b2203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR rtl-optimization/33648 */
/* { dg-do compile } */
/* { dg-require-effective-target freorder } */
/* { dg-options "-O2 -fmodulo-sched -freorder-blocks-and-partition" } */

unsigned res;

void
foo (unsigned code, int len)
{
  int i;
  for (i = 0; i < len; i++)
    res |= code & 1;
}