Fix cond-bool-2.c on powerpc and other targets

Message ID 20230828193053.3783698-1-apinski@marvell.com
State Unresolved
Headers
Series Fix cond-bool-2.c on powerpc and other targets |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Andrew Pinski Aug. 28, 2023, 7:30 p.m. UTC
  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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cond-bool-2.c b/gcc/testsuite/gcc.dg/tree-ssa/cond-bool-2.c
index b3e7e25dec6..7de89cc0de2 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/cond-bool-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/cond-bool-2.c
@@ -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 */