2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mavx" } */
8 foo (void *p1
, void *p2
)
10 __m128i d1
= _mm_loadu_si128 ((__m128i
*) p1
);
11 __m128i d2
= _mm_loadu_si128 ((__m128i
*) p2
);
12 __m128i result
= _mm_cmpeq_epi16 (d1
, d2
);
13 return _mm_movemask_epi8 (result
);
16 /* { dg-final { scan-assembler-times "vmovdqu|vmovups" 1 } } */