aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>2024-03-27 08:50:47 +0100
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>2024-03-27 08:50:47 +0100
commit291c46a3f0d0355680f94280e955f4faf1cae6f9 (patch)
tree802169f412db1d876e079e8318fd7430fc9310b7
parent4b8e7b57d952a1031b0fe11533ef76b9821432c0 (diff)
downloadgcc-291c46a3f0d0355680f94280e955f4faf1cae6f9.zip
gcc-291c46a3f0d0355680f94280e955f4faf1cae6f9.tar.gz
gcc-291c46a3f0d0355680f94280e955f4faf1cae6f9.tar.bz2
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.
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/copy-headers-8.c5
1 files changed, 4 insertions, 1 deletions
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 8b4b5e7..e35aaf9 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)
{