From: Uros Bizjak Date: Sun, 27 Oct 2013 20:32:29 +0000 (+0100) Subject: re PR rtl-optimization/58679 (ICE in create_pre_exit, at mode-switching.c:421 with... X-Git-Tag: releases/gcc-4.9.0~3205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d9b1f94b0d4372100d404ea467eb97d378b9506;p=thirdparty%2Fgcc.git re PR rtl-optimization/58679 (ICE in create_pre_exit, at mode-switching.c:421 with -mavx after r202915) PR target/58679 * gcc.target/i386/pr58679-1.c: New test. * gcc.target/i386/pr58679-2.c: Ditto. From-SVN: r204109 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fa2eb7d51cb6..b3e5dc44c1ea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-10-27 Uros Bizjak + + PR target/58679 + * gcc.target/i386/pr58679-1.c: New test. + * gcc.target/i386/pr58679-2.c: Ditto. + 2013-10-27 Tobias Burnus PR other/33426 @@ -67,8 +73,7 @@ arithmetic. * gcc.dg/ftrapv-2.c: Likewise. * gcc.dg/pr30286.c: Likewise. - * gcc.dg/pr19340.c: Only run on targets that support - scheduling. + * gcc.dg/pr19340.c: Only run on targets that support scheduling. * lib/target-supports.exp (check_effective_target_trapping): New proc. Returns true if the target supports trapping arithmetic. @@ -84,8 +89,7 @@ 2013-10-24 Ian Lance Taylor - * go.test/go-test.exp (errchk): Combine quoted strings in - comments. + * go.test/go-test.exp (errchk): Combine quoted strings in comments. 2013-10-24 Cong Hou diff --git a/gcc/testsuite/gcc.target/i386/pr58679-1.c b/gcc/testsuite/gcc.target/i386/pr58679-1.c new file mode 100644 index 000000000000..91db8e63e7fb --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr58679-1.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -mavx" } */ + +typedef struct { char a; long long b; } S; + +S foo (S x, S y) +{ + S z; + + z.a = 0; + z.b = x.b / y.b; + return z; +} diff --git a/gcc/testsuite/gcc.target/i386/pr58679-2.c b/gcc/testsuite/gcc.target/i386/pr58679-2.c new file mode 100644 index 000000000000..b63545bc076e --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr58679-2.c @@ -0,0 +1,7 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -mavx" } */ + +int f (long long a, long long b) +{ + return (a * b) >> 16; +}