blob: d32ba94882a1cfaf01b496ed3c16981f73a6d24f [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O1 -funroll-loops -ftree-vectorize -fcompare-debug" } */
int seed;
static inline int hash(const char *str)
{
int h = seed++;
int i = 12;
while (i--)
h += (h << 3) ^ *str++;
return h;
}
void f(const char *str, int *h)
{
int i = 6;
while (i--)
*h++ = hash(str);
}