view gcc/testsuite/gcc.c-torture/compile/20160802-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

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;
}