hppa: Fix ICE caused by mismatched predicate and constraint in xmpyu patterns
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42916.c
blobd32ba94882a1cfaf01b496ed3c16981f73a6d24f
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -funroll-loops -ftree-vectorize -fcompare-debug" } */
4 int seed;
6 static inline int hash(const char *str)
8 int h = seed++;
9 int i = 12;
10 while (i--)
11 h += (h << 3) ^ *str++;
12 return h;
15 void f(const char *str, int *h)
17 int i = 6;
18 while (i--)
19 *h++ = hash(str);