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