This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] New testcase for PR92228


Committed.

Richard.

2019-10-29  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/92241
	* gcc.dg/torture/pr92241-2.c: New testcase.

Index: gcc/testsuite/gcc.dg/torture/pr92241-2.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/pr92241-2.c	(nonexistent)
+++ gcc/testsuite/gcc.dg/torture/pr92241-2.c	(working copy)
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-additional-options "-ftree-vectorize" } */
+
+int ze, r2;
+int i0[2];
+
+void
+np (int ch)
+{
+  while (ch < 1)
+    {
+      if (i0[ch] != 0)
+        ze = r2 = ch;
+
+      ++ch;
+    }
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]