diff mbox series

[committed] Add testcase for already fixed PR tree-optimization/85794

Message ID 20181122200030.GK11625@tucnak
State New
Headers show
Series [committed] Add testcase for already fixed PR tree-optimization/85794 | expand

Commit Message

Jakub Jelinek Nov. 22, 2018, 8 p.m. UTC
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.


	Jakub
diff mbox series

Patch

--- 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;
+}