1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* { dg-do compile } */ /* { dg-options "-O2 -mavx2" } */ /* { dg-final { scan-assembler "mpsadbw\[ \\t\]+\[^\n\]*%ymm\[0-9\]" } } */ #include <immintrin.h> volatile __m256i x; void extern avx2_test (void) { /* imm = 13 is arbitrary here */ x = _mm256_mpsadbw_epu8 (x, x, 13); }