From: Richard Biener Date: Tue, 29 Oct 2019 08:05:38 +0000 (+0000) Subject: re PR tree-optimization/92241 (ice in vect_mark_pattern_st mts, at tree-vect-patterns... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=891966480630f58f115825c31badc59dd18d5eb9;p=gcc.git 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 --- 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; + } +}