re PR tree-optimization/85794 ([AArch64] ICE in expand_vector_condition in GIMPLE...
authorJakub Jelinek <jakub@redhat.com>
Thu, 22 Nov 2018 19:58:50 +0000 (20:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 22 Nov 2018 19:58:50 +0000 (20:58 +0100)
PR tree-optimization/85794
* gcc.dg/vect/O3-pr85794.c: New test.

From-SVN: r266387

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/O3-pr85794.c [new file with mode: 0644]

index b3675a4ec2df11bb6f90a322bebc4af8f5529afc..b8a793fa75978096350bbf907550152ecf88ab95 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-22  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/85794
+       * gcc.dg/vect/O3-pr85794.c: New test.
+
 2018-11-22  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR rtl-optimization/87718
diff --git a/gcc/testsuite/gcc.dg/vect/O3-pr85794.c b/gcc/testsuite/gcc.dg/vect/O3-pr85794.c
new file mode 100644 (file)
index 0000000..0def0fa
--- /dev/null
@@ -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;
+}