1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -march=haswell" } */
3 /* { dg-final { scan-assembler-times "vpmovsxdq" 1 } } */
4 /* { dg-final { scan-assembler-not "vmovq" } } */
5 
6 #include <immintrin.h>
7 
8 void
f(void * dst,void * ptr)9 f (void *dst, void *ptr)
10 {
11   __m128i data = _mm_cvtsi64_si128(*(long long int*)ptr);
12   data = _mm_cvtepi32_epi64(data);
13   _mm_storeu_si128((__m128i*)dst, data);
14 }
15