gcc/testsuite/gcc.target/i386/pr87317-6.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -march=haswell" } */ |
| 3 | /* { dg-final { scan-assembler-times "vpmovzxbq" 1 } } */ |
| 4 | /* { dg-final { scan-assembler-not "vmovq" } } */ |
| 5 | |
| 6 | #include <immintrin.h> |
| 7 | |
| 8 | void |
| 9 | f (void *dst, void *ptr) |
| 10 | { |
| 11 | __m128i y = _mm_cvtsi32_si128(*(int*)ptr); |
| 12 | __m256i z = _mm256_cvtepu8_epi64 (y); |
| 13 | _mm256_storeu_si256((__m256i*)dst, z); |
| 14 | } |