1 /* PR target/47800 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -march=nocona" } */ 4 5 int foo(unsigned char * x,unsigned char * y)6foo (unsigned char *x, unsigned char *y) 7 { 8 unsigned char a; 9 for (a = 0; x < y; x++) 10 if (a & 0x80) 11 a = (unsigned char) (a << 1) + 1 + *x; 12 else 13 a = (unsigned char) (a << 1) + *x; 14 return a; 15 } 16