This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Add testcase for already fixed PR tree-optimization/85794
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Nov 2018 21:00:30 +0100
- Subject: [committed] Add testcase for already fixed PR tree-optimization/85794
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
This testcase has been fixed by the PR85793 fix r260317.
I've committed following test as obvious so that we can close the PR.
2018-11-22 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/85794
* gcc.dg/vect/O3-pr85794.c: New test.
--- gcc/testsuite/gcc.dg/vect/O3-pr85794.c.jj 2018-11-22 17:49:10.898893803 +0100
+++ gcc/testsuite/gcc.dg/vect/O3-pr85794.c 2018-11-22 17:47:04.261981744 +0100
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+
+int a, b, *c, d;
+int *f[6];
+
+void
+foo (void)
+{
+ for (b = 1; b >= 0; b--)
+ for (d = 0; d <= 3; d++)
+ a |= f[b * 5] != c;
+}
Jakub