diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-02-19 21:57:12 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-02-19 21:57:12 +0100 |
commit | 982d62f6eacbbb0f8aff8e3fd43f04810b00f8ba (patch) | |
tree | d56b66298964ef9e901ea1f925630fde10fef2d6 /gcc/testsuite | |
parent | c543b18ae2c9dace399e8e5d0b710353de7371b1 (diff) | |
download | gcc-982d62f6eacbbb0f8aff8e3fd43f04810b00f8ba.zip gcc-982d62f6eacbbb0f8aff8e3fd43f04810b00f8ba.tar.gz gcc-982d62f6eacbbb0f8aff8e3fd43f04810b00f8ba.tar.bz2 |
re PR c/47809 (ICE in gimplify_expr, at gimplify.c:7291)
PR c/47809
* c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
* gcc.target/i386/pr47809.c: New test.
From-SVN: r170323
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr47809.c | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ccdea7f..0b9dc0c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-02-19 Jakub Jelinek <jakub@redhat.com> + + PR c/47809 + * gcc.target/i386/pr47809.c: New test. + 2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> diff --git a/gcc/testsuite/gcc.target/i386/pr47809.c b/gcc/testsuite/gcc.target/i386/pr47809.c new file mode 100644 index 0000000..5832a65 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr47809.c @@ -0,0 +1,13 @@ +/* PR c/47809 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -msse2" } */ + +#include <emmintrin.h> +double bar (double, double); + +__m128d +foo (__m128d x) +{ + x *= (__m128d) { bar (1.0, 1.0), 0.0 }; + return (__m128d) ((__m128i) x ^ (__m128i) { 0, 0}); +} |