From: Richard Biener Date: Thu, 26 Jan 2023 07:38:35 +0000 (+0100) Subject: tree-optimization/108523 - testcase for the bug X-Git-Tag: upstream/13.1.0~1866 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f6d05e9ad858b59b824f57d09400adcb2c5e4ad;p=platform%2Fupstream%2Fgcc.git tree-optimization/108523 - testcase for the bug This adds a reduced testcase for the PR. PR tree-optimization/108523 * gcc.dg/torture/pr108523.c: New testcase. --- diff --git a/gcc/testsuite/gcc.dg/torture/pr108523.c b/gcc/testsuite/gcc.dg/torture/pr108523.c new file mode 100644 index 0000000..a04160b --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr108523.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ + +int g_149, g_167, g_481; +int main() { + int *l_1478 = &g_149; + *l_1478 ^= g_167; +lbl_1481: + for (;;) { + g_481 = 1; + for (; g_481 < 100000; g_481 += 1) { + g_167 ^= *l_1478; + if (g_149) + goto lbl_1481; + } + } +}