Committed.

Richard.

2019-10-29  Richard Biener  <rguent...@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;
+    }
+}

Reply via email to