OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr50038.c] - Rev 704

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR target/50038 */
/* { dg-options "-O2" } */
 
void
test (int len, unsigned char *in, unsigned char *out)
{
  int i;
  unsigned char xr, xg;
  unsigned char xy=0;
  for (i = 0; i < len; i++)
    {
      xr = *in++;
      xg = *in++;
      xy = (unsigned char) ((19595 * xr + 38470 * xg) >> 16);
 
      *out++ = xy;
    }
}
 
/* { dg-final { scan-assembler-times "movzbl" 2 } } */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.