From 1d9b1f94b0d4372100d404ea467eb97d378b9506 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Sun, 27 Oct 2013 21:32:29 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 12 ++++++++---- gcc/testsuite/gcc.target/i386/pr58679-1.c | 13 +++++++++++++ gcc/testsuite/gcc.target/i386/pr58679-2.c | 7 +++++++ 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 gcc/testsuite/gcc.target/i386/pr58679-1.c create mode 100644 gcc/testsuite/gcc.target/i386/pr58679-2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fa2eb7d51cb..b3e5dc44c1e 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 00000000000..91db8e63e7f --- /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 00000000000..b63545bc076 --- /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; +} -- 2.30.2