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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr42916.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -funroll-loops -ftree-vectorize -fcompare-debug" } */
3
 
4
int seed;
5
 
6
static inline int hash(const char *str)
7
{
8
  int h = seed++;
9
  int i = 12;
10
  while (i--)
11
    h += (h << 3) ^ *str++;
12
  return h;
13
}
14
 
15
void f(const char *str, int *h)
16
{
17
  int i = 6;
18
  while (i--)
19
    *h++ = hash(str);
20
}

powered by: WebSVN 2.1.0

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