view gcc/testsuite/gcc.dg/pr92260.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O3" } */

extern int abs(int);
int e(const unsigned char *g, long h, unsigned char m)
{
  int i = 0;
  for (int j = 0; j < h; j++)
    {
      for (int k = 0; k < 4; k++)
	i += abs(g[k] - m);
      g += h;
    }
  return i;
}