summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sse2-load-multi.c
blob: 927605460d8eec2c36f8a7d9047972e671f74d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do compile } */
/* { dg-options "-march=corei7 -O2" } */

#include <emmintrin.h>

double a[8];

__m128d load_1 ()
{
  __m128d res;
  res = _mm_load_sd (&a[1]);
  res = _mm_loadh_pd (res, &a[2]);
  return res;
}

__m128d load_2 (double *a)
{
  __m128d res;
  res = _mm_load_sd (&a[1]);
  res = _mm_loadh_pd (res, &a[2]);
  return res;
}

/* { dg-final { scan-assembler-times "movup" 2 } } */