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