summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr49002-2.c
blob: b0e10091b5ce8530a93f71148c09e2183365819d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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 "vmovapd\[\t \]*%ymm\[0-9\]\+,\[^,\]*" } } */