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] - Blame information for rev 848

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

Line No. Rev Author Line
1 691 jeremybenn
/* PR target/50038 */
2
/* { dg-options "-O2" } */
3
 
4
void
5
test (int len, unsigned char *in, unsigned char *out)
6
{
7
  int i;
8
  unsigned char xr, xg;
9
  unsigned char xy=0;
10
  for (i = 0; i < len; i++)
11
    {
12
      xr = *in++;
13
      xg = *in++;
14
      xy = (unsigned char) ((19595 * xr + 38470 * xg) >> 16);
15
 
16
      *out++ = xy;
17
    }
18
}
19
 
20
/* { dg-final { scan-assembler-times "movzbl" 2 } } */

powered by: WebSVN 2.1.0

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