* config/i386/avx512fintrin.h (_mm512_set_epi16, _mm512_set_epi8,
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / saddw-2.c
blobb9fc442a2f7b6c83e3a75a5f813d04cfa2b6a6f6
1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
4 #pragma GCC target "+nosve"
6 int
7 t6(int len, void * dummy, int * __restrict x)
9 len = len & ~31;
10 long long result = 0;
11 __asm volatile ("");
12 for (int i = 0; i < len; i++)
13 result += x[i];
14 return result;
17 /* { dg-final { scan-assembler "saddw" } } */
18 /* { dg-final { scan-assembler "saddw2" } } */