From: Stefan Schulze Frielinghaus Date: Wed, 27 Mar 2024 07:50:47 +0000 (+0100) Subject: testsuite: Fix copy-headers-8.c X-Git-Tag: basepoints/gcc-15~456 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=291c46a3f0d0355680f94280e955f4faf1cae6f9;p=thirdparty%2Fgcc.git testsuite: Fix copy-headers-8.c For targets where LOGICAL_OP_NON_SHORT_CIRCUIT evaluates to false, two conditional jumps are emitted instead of a combined conditional which this test is all about. Thus, set it to true. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/copy-headers-8.c: Set LOGICAL_OP_NON_SHORT_CIRCUIT to true. --- diff --git a/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-8.c b/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-8.c index 8b4b5e7ea81e..e35aaf93da81 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-8.c @@ -1,5 +1,8 @@ +/* For targets where LOGICAL_OP_NON_SHORT_CIRCUIT evaluates to false, two + conditional jumps are emitted instead of a combined conditional which this + test is all about. Thus, set it to true. */ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ch2-details" } */ +/* { dg-options "-O2 -fdump-tree-ch2-details --param logical-op-non-short-circuit=1" } */ int is_sorted(int *a, int n, int m, int k) {