2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr59539-1.c
blob68342ff15f27d4ca978036c622bf1eb55812b6ee
1 /* PR target/59539 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mavx" } */
5 #include <immintrin.h>
7 int
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 } } */