From 15dba7dfba8b7800ac7b74213171e4df9bc32bb9 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 29 Jan 2025 19:42:11 -0700 Subject: [PR testsuite/116860] Testsuite adjustment for recently added tests There's two new tests that are dependent on logical-op-non-short-circuit settings. The BZ is reported against ppc64 and ppc64le, but also applies to a goodly number of the other targets. The "regression" fix is trivial, just add the appropriate param to force the behavior we're expecting. I'm committing that fix momentarily. It's been verified on ppc64, ppc64le and x86_64 as well as the various embedded targets in my tester where many FAILS flip to PASS. I'm leaving the bug open without the regression marker as Jakub has noted a couple of improvements that we can and probably should make. PR target/116860 gcc/testsuite * gcc.dg/tree-ssa/fold-xor-and-or.c: Set logical-op-non-short-circuit. * gcc.dg/tree-ssa/fold-xor-or.c: Similarly. --- gcc/testsuite/gcc.dg/tree-ssa/fold-xor-and-or.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/fold-xor-or.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/testsuite/gcc.dg/tree-ssa/fold-xor-and-or.c b/gcc/testsuite/gcc.dg/tree-ssa/fold-xor-and-or.c index e5dc98e..99e83d8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/fold-xor-and-or.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/fold-xor-and-or.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -fdump-tree-optimized" } */ +/* { dg-options "-O3 -fdump-tree-optimized --param logical-op-non-short-circuit=1" } */ typedef unsigned long int uint64_t; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/fold-xor-or.c b/gcc/testsuite/gcc.dg/tree-ssa/fold-xor-or.c index c55cfbc..51b7373 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/fold-xor-or.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/fold-xor-or.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -fdump-tree-optimized" } */ +/* { dg-options "-O3 -fdump-tree-optimized --param logical-op-non-short-circuit=1" } */ typedef unsigned long int uint64_t; -- cgit v1.1