1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_neon_ok } */
3 /* { dg-options "-O3" } */
4 /* { dg-add-options arm_neon } */
5 
6 
7 int
t6(int len,void * dummy,unsigned short * __restrict x)8 t6 (int len, void * dummy, unsigned short * __restrict x)
9 {
10   len = len & ~31;
11   unsigned int result = 0;
12   __asm volatile ("");
13   for (int i = 0; i < len; i++)
14     result += x[i];
15   return result;
16 }
17 
18 /* { dg-final { scan-assembler "vaddw.u16" } } */
19