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.

Jeff
commit 15dba7dfba8b7800ac7b74213171e4df9bc32bb9
Author: Jeff Law <j...@ventanamicro.com>
Date:   Wed Jan 29 19:42:11 2025 -0700

    [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.

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 e5dc98e7541..99e83d8e5aa 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 c55cfbcc84c..51b7373af0d 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;
 

Reply via email to