https://gcc.gnu.org/g:3bae47f716b56fbfbf63653a73f34a768a064d51

commit r17-5425-g3bae47f716b56fbfbf63653a73f34a768a064d51
Author: Jakub Jelinek <[email protected]>
Date:   Wed Oct 21 09:14:33 2026 +0200

    testsuite: Fix up gcc.dg/torture/bitint-112.c test
    
    In the PR127905 commit I've missed during pushing a test with
    the same name has been committed already in PR111280.
    
    Fixed thusly.
    
    2026-10-21  Jakub Jelinek  <[email protected]>
    
            * gcc.dg/torture/bitint-112.c: Move 2026-10-20 test to ...
            * gcc.dg/torture/bitint-114.c: ... here.  New test.

Diff:
---
 gcc/testsuite/gcc.dg/torture/bitint-112.c | 35 -------------------------------
 gcc/testsuite/gcc.dg/torture/bitint-114.c | 35 +++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/torture/bitint-112.c 
b/gcc/testsuite/gcc.dg/torture/bitint-112.c
index 521d8426646f..4d4dab67b890 100644
--- a/gcc/testsuite/gcc.dg/torture/bitint-112.c
+++ b/gcc/testsuite/gcc.dg/torture/bitint-112.c
@@ -1,38 +1,3 @@
-/* PR tree-optimization/127905 */
-/* { dg-do run { target bitint } } */
-
-#if __BITINT_MAXWIDTH__ >= 135
-typedef unsigned _BitInt(135) B;
-
-[[gnu::noipa]] B
-foo (B b, int c, unsigned n)
-{
-  B x = c ? b : 7;
-  B y = b;
-  for (unsigned i = 0; i < n; i++)
-    y = x + i;
-  return y;
-}
-
-[[gnu::noipa]] B
-bar (B b, B a, int c, unsigned n)
-{
-  B x = c ? b : 7;
-  B y = b;
-  for (unsigned i = 0; i < n; i++)
-    y = c ? x + 7 : a;
-  return y;
-}
-#endif
-
-int
-main ()
-{
-#if __BITINT_MAXWIDTH__ >= 135
-  if (foo (5, 1, 3) != 7 || bar (5, 9, 1, 3) != 12)
-    __builtin_abort ();
-#endif
-}
 /* { dg-do run { target bitint } } */
 /* { dg-options "-std=c23 -pedantic-errors" } */
 
diff --git a/gcc/testsuite/gcc.dg/torture/bitint-114.c 
b/gcc/testsuite/gcc.dg/torture/bitint-114.c
new file mode 100644
index 000000000000..700185a5d638
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/bitint-114.c
@@ -0,0 +1,35 @@
+/* PR tree-optimization/127905 */
+/* { dg-do run { target bitint } } */
+
+#if __BITINT_MAXWIDTH__ >= 135
+typedef unsigned _BitInt(135) B;
+
+[[gnu::noipa]] B
+foo (B b, int c, unsigned n)
+{
+  B x = c ? b : 7;
+  B y = b;
+  for (unsigned i = 0; i < n; i++)
+    y = x + i;
+  return y;
+}
+
+[[gnu::noipa]] B
+bar (B b, B a, int c, unsigned n)
+{
+  B x = c ? b : 7;
+  B y = b;
+  for (unsigned i = 0; i < n; i++)
+    y = c ? x + 7 : a;
+  return y;
+}
+#endif
+
+int
+main ()
+{
+#if __BITINT_MAXWIDTH__ >= 135
+  if (foo (5, 1, 3) != 7 || bar (5, 9, 1, 3) != 12)
+    __builtin_abort ();
+#endif
+}

Reply via email to