re PR tree-optimization/92241 (ice in vect_mark_pattern_st mts, at tree-vect-patterns...
authorRichard Biener <rguenther@suse.de>
Tue, 29 Oct 2019 08:05:38 +0000 (08:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 29 Oct 2019 08:05:38 +0000 (08:05 +0000)
2019-10-29  Richard Biener  <rguenther@suse.de>

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

From-SVN: r277553

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr92241-2.c [new file with mode: 0644]

index a44e5ddf8fcfbe17180d5c79337b287cfd0a7144..bbb5f1b19550833bebe5d83b5d0f2f1b5f3c3035 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-29  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/92241
+       * gcc.dg/torture/pr92241-2.c: New testcase.
+
 2019-10-29  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/92258
diff --git a/gcc/testsuite/gcc.dg/torture/pr92241-2.c b/gcc/testsuite/gcc.dg/torture/pr92241-2.c
new file mode 100644 (file)
index 0000000..41a5760
--- /dev/null
@@ -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;
+    }
+}