From: uros Date: Sun, 27 Oct 2013 20:32:29 +0000 (+0000) Subject: PR target/58679 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f18069e98112d87bd41bb93bcfdae74b4f78154c;p=thirdparty%2Fgcc.git PR target/58679 * gcc.target/i386/pr58679-1.c: New test. * gcc.target/i386/pr58679-2.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204109 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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; +}