Message ID | nycvar.YFH.7.76.1910290904260.5566@zhemvz.fhfr.qr |
---|---|
State | New |
Headers | show |
Series | New testcase for PR92228 | expand |
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; + } +}