aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr48037-1.c
blob: 1b64a7d19b4cc8a9fe7d54a101fee70f456dfe09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-options "-O -fno-math-errno" } */

typedef double __m128d __attribute__((vector_size(16)));
__m128d vsqrt1 (__m128d const x)
{
  double const* __restrict__ const y = (double const*)&x;
  double const a = __builtin_sqrt(y[0]);
  double const b = __builtin_sqrt(y[1]);
  return (__m128d) { a, b };
}

/* Verify we do not spill x to the stack.  */
/* { dg-final { scan-assembler-not "%rsp" } } */