blob: fd3b578c0bb23c4aaf5098fa01f487b7cebc0b67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do compile } */
/* { dg-options "-O3" } */
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 "uaddw" } } */
/* { dg-final { scan-assembler "uaddw2" } } */
|