]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix copy-headers-8.c
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Wed, 27 Mar 2024 07:50:47 +0000 (08:50 +0100)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Wed, 27 Mar 2024 07:50:47 +0000 (08:50 +0100)
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

index 8b4b5e7ea81e7fe2418e32d989d0fac3c1ea8746..e35aaf93da81c69253a488bd8520ebce181464c9 100644 (file)
@@ -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)
 {