From 0d3f65273b2de423cb9895d70cd646d19f650322 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 4 May 2010 14:11:32 +0000 Subject: Add a testcase for PR debug/43508. 2010-05-04 H.J. Lu PR debug/43508 * gcc.target/i386/pr43508.c: New. From-SVN: r159027 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr43508.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr43508.c (limited to 'gcc/testsuite') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 60ec841..29eaf71 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-05-04 H.J. Lu + + PR debug/43508 + * gcc.target/i386/pr43508.c: New. + 2010-05-04 Richard Guenther PR tree-optimization/43879 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); +} -- cgit v1.1