]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR target/58679
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Oct 2013 20:32:29 +0000 (20:32 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Oct 2013 20:32:29 +0000 (20:32 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr58679-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr58679-2.c [new file with mode: 0644]

index fa2eb7d51cb6c94b39a925ca0ffd7a9c26ea732f..b3e5dc44c1ea8cb701dc4994cd8a92a619930c75 100644 (file)
@@ -1,3 +1,9 @@
+2013-10-27  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/58679
+       * gcc.target/i386/pr58679-1.c: New test.
+       * gcc.target/i386/pr58679-2.c: Ditto.
+
 2013-10-27  Tobias Burnus  <burnus@net-b.de>
 
        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  <iant@google.com>
 
-       * 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  <congh@google.com>
 
diff --git a/gcc/testsuite/gcc.target/i386/pr58679-1.c b/gcc/testsuite/gcc.target/i386/pr58679-1.c
new file mode 100644 (file)
index 0000000..91db8e6
--- /dev/null
@@ -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 (file)
index 0000000..b63545b
--- /dev/null
@@ -0,0 +1,7 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -mavx" } */
+
+int f (long long a, long long b)
+{
+  return (a * b) >> 16;
+}