2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr49002-1.c
blob646fb2bceb6e4a086ff1245ce6bb82014311995a
1 /* PR target/49002 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -mavx" } */
5 #include <immintrin.h>
7 void foo(const __m128d *from, __m256d *to, int s)
9 __m256d var = _mm256_castpd128_pd256(from[0]);
10 var = _mm256_insertf128_pd(var, from[s], 1);
11 to[0] = var;
14 /* Ensure we load into xmm, not ymm. */
15 /* { dg-final { scan-assembler-not "vmovapd\[\t \]*\[^,\]*,\[\t \]*%ymm" } } */
16 /* { dg-final { scan-assembler "vmovap\[ds\]\[\t \]*\[^,\]*,\[\t \]*%xmm" } } */