summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512vl-vpsadbw-1.c
blob: eb0125070e8e6b0e0e659d6669fef4612736dc46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-mavx512vl -mavx512bw -O2" } */
/* { dg-final { scan-assembler-times "vpsadbw\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1} } */

#include <immintrin.h>

volatile __m512i x;

void extern
avx512vl_test (void)
{
  x = _mm512_sad_epu8 (x, x);
}