summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr43508.c
blob: c43982b3c54d0ff364cb19b82dfb053c695a3872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-g -O -msse3" } */

typedef float v4sf __attribute__ ((__vector_size__ (16)));
typedef int v4si __attribute__ ((__vector_size__ (16)));

v4sf bar(int);

v4sf foo(v4si vi)
{
  int x = __builtin_ia32_vec_ext_v4si (vi, 0);
  return bar(x);
}