From 891966480630f58f115825c31badc59dd18d5eb9 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 29 Oct 2019 08:05:38 +0000 Subject: [PATCH] re PR tree-optimization/92241 (ice in vect_mark_pattern_st mts, at tree-vect-patterns.c:5175) 2019-10-29 Richard Biener PR tree-optimization/92241 * gcc.dg/torture/pr92241-2.c: New testcase. From-SVN: r277553 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/torture/pr92241-2.c | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/torture/pr92241-2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a44e5ddf8fc..bbb5f1b1955 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-29 Richard Biener + + PR tree-optimization/92241 + * gcc.dg/torture/pr92241-2.c: New testcase. + 2019-10-29 Jakub Jelinek 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 index 00000000000..41a57604d1a --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr92241-2.c @@ -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; + } +} -- 2.30.2