]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix cond-bool-2.c on powerpc and other targets
authorAndrew Pinski <apinski@marvell.com>
Mon, 28 Aug 2023 19:27:41 +0000 (19:27 +0000)
committerAndrew Pinski <apinski@marvell.com>
Mon, 28 Aug 2023 19:31:34 +0000 (19:31 +0000)
This adds `--param logical-op-non-short-circuit=1` to the tescase
so it becomes a target indepdendent testcase now.
I filed PR 111217 as the variant of the testcase which fails indepdendently
of the param.

Committed as obvious after testing to make sure it passes on powerpc now.

gcc/testsuite/ChangeLog:

PR testsuite/111215
* gcc.dg/tree-ssa/cond-bool-2.c: Add
`--param logical-op-non-short-circuit=1` to the options.

gcc/testsuite/gcc.dg/tree-ssa/cond-bool-2.c

index b3e7e25dec6fa13040e12748942078faba83b273..7de89cc0de28b1a43af26d8ec572b21973d0ece2 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized-raw" } */
+/* { dg-options "-O2 --param logical-op-non-short-circuit=1 -fdump-tree-optimized-raw" } */
 
 /* PR tree-optimization/95929 */