This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] New testcase for PR92228
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Oct 2019 09:04:52 +0100 (CET)
- Subject: [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;
+ }
+}