https://gcc.gnu.org/g:c628aeacedc8faf063248c6c91c45f32ed5a94be
commit r16-5416-gc628aeacedc8faf063248c6c91c45f32ed5a94be Author: Jakub Jelinek <[email protected]> Date: Wed Nov 19 13:41:59 2025 +0100 testsuite: Add testcase for already fixed PR [PR121519] This PR has been fixed by r16-4253 PR121206 fix. 2025-11-19 Jakub Jelinek <[email protected]> PR tree-optimization/121519 * gcc.dg/pr121519.c: Add testcase for already fixed PR. Diff: --- gcc/testsuite/gcc.dg/pr121519.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gcc/testsuite/gcc.dg/pr121519.c b/gcc/testsuite/gcc.dg/pr121519.c new file mode 100644 index 000000000000..e86f67dfa0f2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr121519.c @@ -0,0 +1,41 @@ +/* PR tree-optimization/121519 */ +/* { dg-do compile { target int32plus } } */ +/* { dg-options "-O3" } */ + +extern int foo (void); +int a, b, c; + +int +bar (int f) +{ + int d = 0; + for (; d < 6; d++) + { + a = f <<= 1; + if (f & 64) + f ^= 67; + } + return a; +} + +void +baz (void) +{ + int i = 0; + if (c) + goto j; + i = -32644994; +k: + b = 0; +j: + if (foo () - 508050053 + bar (i + 79)) + goto k; +} + +int +main () +{ + while (a) + baz (); + return 0; +}
