blob: d711ee06d40ec58e1e165a278a0cf33764430b28 [file] [log] [blame]
/* PR tree-optimization/91201 */
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O3 -msse2 -mno-sse3" } */
/* { dg-final { scan-assembler "\tpsadbw\t" } } */
unsigned char bytes[1024];
unsigned char
sum (void)
{
unsigned char r = 0;
unsigned char *p = (unsigned char *) bytes;
int n;
for (n = 8; n < sizeof (bytes); ++n)
{
p[n - 8] += p[n];
r += p[n];
}
return r;
}