summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr49002-2.c
blob: 9f21a2d17d959d89508eade0669e8e46191c3c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/49002 */
/* { dg-do compile } */
/* { dg-options "-O -mavx" } */

#include <immintrin.h>

void foo(const __m128d from, __m256d *to)
{
  *to = _mm256_castpd128_pd256(from);
}

/* Ensure we store ymm, not xmm.  */
/* { dg-final { scan-assembler-not "vmovapd\[\t \]*%xmm\[0-9\]\+,\[^,\]*" } } */
/* { dg-final { scan-assembler-not "vmovaps\[\t \]*%xmm\[0-9\]\+,\[^,\]*" } } */
/* { dg-final { scan-assembler "vmovaps\[\t \]*%ymm\[0-9\]\+,\[^,\]*" } } */