aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.target/i386/pr32661-1.c
blob: 9411c28872a0827083b4c9fecbce92a7e79feae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2 -fomit-frame-pointer" } */

typedef long long __m128i __attribute__ ((__vector_size__ (16)));

long long foo_0(__m128i* val)
{
  return __builtin_ia32_vec_ext_v2di(*val, 0);
}

long long foo_1(__m128i* val)
{
  return __builtin_ia32_vec_ext_v2di(*val, 1);
}

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