blob: 7553e8290e5596c2d4eeb150539fd4fee30d9850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* PR target/49002 */
/* { dg-do compile } */
/* { dg-options "-O -mavx" } */
#include <immintrin.h>
void foo(const __m128d *from, __m256d *to, int s)
{
__m256d var = _mm256_castpd128_pd256(from[0]);
var = _mm256_insertf128_pd(var, from[s], 1);
to[0] = var;
}
/* Ensure we load into xmm, not ymm. */
/* { dg-final { scan-assembler-not "vmovapd\[\t \]*\[^,\]*,\[\t \]*%ymm" } } */
/* { dg-final { scan-assembler "vmovapd\[\t \]*\[^,\]*,\[\t \]*%xmm" } } */
|