public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5555] tree-optimization/112585 - new testcase
@ 2023-11-17 13:52 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-11-17 13:52 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:04abafe9831f6867af1211ecae853ff373235b2d

commit r14-5555-g04abafe9831f6867af1211ecae853ff373235b2d
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Nov 17 14:49:06 2023 +0100

    tree-optimization/112585 - new testcase
    
    The offending commit r14-5444-g5ea2965b499f9e was reverted.  The
    following adds a testcase.
    
            PR tree-optimization/112585
            * gcc.dg/torture/pr112585.c: New testcase.

Diff:
---
 gcc/testsuite/gcc.dg/torture/pr112585.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/torture/pr112585.c b/gcc/testsuite/gcc.dg/torture/pr112585.c
new file mode 100644
index 00000000000..6c8cbeba3c2
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr112585.c
@@ -0,0 +1,18 @@
+/* { dg-do run } */
+/* { dg-additional-options "-ftree-loop-distribution" } */
+
+static int a[10], b;
+char c, *d = &c, e;
+int main()
+{
+  int f = 0;
+  for (; f < 9; f++) {
+    a[f] = 1;
+    a[f + 1] = e;
+    for (b = 0; b < 8; b++)
+      *d = 0;
+  }
+  if (a[2] != 1)
+    __builtin_abort();
+  return 0;
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-17 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-17 13:52 [gcc r14-5555] tree-optimization/112585 - new testcase Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).