[gcc r13-5378] tree-optimization/108523 - testcase for the bug
Richard Biener
rguenth@gcc.gnu.org
Thu Jan 26 07:39:57 GMT 2023
https://gcc.gnu.org/g:1f6d05e9ad858b59b824f57d09400adcb2c5e4ad
commit r13-5378-g1f6d05e9ad858b59b824f57d09400adcb2c5e4ad
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 26 08:38:35 2023 +0100
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:
---
gcc/testsuite/gcc.dg/torture/pr108523.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/torture/pr108523.c b/gcc/testsuite/gcc.dg/torture/pr108523.c
new file mode 100644
index 00000000000..a04160baf2a
--- /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;
+ }
+ }
+}
More information about the Gcc-cvs
mailing list