diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr43508.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr43508.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr43508.c b/gcc/testsuite/gcc.target/i386/pr43508.c new file mode 100644 index 0000000..c43982b --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr43508.c @@ -0,0 +1,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); +} |