From 291c46a3f0d0355680f94280e955f4faf1cae6f9 Mon Sep 17 00:00:00 2001 From: Stefan Schulze Frielinghaus Date: Wed, 27 Mar 2024 08:50:47 +0100 Subject: [PATCH] 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. --- gcc/testsuite/gcc.dg/tree-ssa/copy-headers-8.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.47.2