blob: 580bb06100630d5b8c28447c7c8859b7312aa90a [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-O3" } */
/* { dg-add-options arm_neon } */
int
t6 (int len, void * dummy, unsigned short * __restrict x)
{
len = len & ~31;
unsigned int result = 0;
__asm volatile ("");
for (int i = 0; i < len; i++)
result += x[i];
return result;
}
/* { dg-final { scan-assembler "vaddw.u16" } } */