https://gcc.gnu.org/g:e0fd54b5c56f1ea6317d63feac412121b46ded8c

commit r16-8885-ge0fd54b5c56f1ea6317d63feac412121b46ded8c
Author: Richard Biener <[email protected]>
Date:   Mon May 4 14:13:30 2026 +0200

    tree-optimization/125153 - testcase for fixed PR
    
    The following adds a testcase for the PR which was fixed by
    reversion of r16-303.
    
            PR tree-optimization/125153
            * gcc.dg/torture/pr125153.c: New testcase.
    
    (cherry picked from commit 40f567d9cabc5170ed396025d516b93838f4f141)

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

diff --git a/gcc/testsuite/gcc.dg/torture/pr125153.c 
b/gcc/testsuite/gcc.dg/torture/pr125153.c
new file mode 100644
index 000000000000..484dc189baf0
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr125153.c
@@ -0,0 +1,25 @@
+/* { dg-do run } */
+
+int a, b, c;
+_Bool d, e;
+
+void
+foo (void)
+{
+  if (d)
+    {
+    l: b = -1;
+    }
+  e = c <= b;
+  a = a - 7;
+  if (e)
+    goto l;
+}
+
+int
+main ()
+{
+  foo ();
+  if (a != -14)
+    __builtin_abort ();
+}

Reply via email to