aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20160802-1.c
blob: f7a83dc73dca8038b530fd8ac826443c3b5fb2bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
long g (long width, unsigned long byte) {
  long r_hi = 0;
  unsigned long r_lo = 0;
  int s;
  for (s = 0; s < width; s += 8)
    {
      int d = width - s - 8;
      if (s < (8 * 8))
        r_hi |= byte << (d - (8 * 8));
    }
  return r_lo + r_hi;
}