From: Martin Liska Date: Wed, 9 Dec 2020 14:24:36 +0000 (+0100) Subject: testsuite: fix 2 tests on aarch64 X-Git-Tag: upstream/12.2.0~11071 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33d2f41785b24ad43c5a9d52aa289e33ac838f86;p=platform%2Fupstream%2Fgcc.git testsuite: fix 2 tests on aarch64 gcc/testsuite/ChangeLog: PR tree-optimization/98182 * gcc.dg/tree-ssa/if-to-switch-1.c: Add case-values-threshold in order to fix them for aarch64. * gcc.dg/tree-ssa/if-to-switch-10.c: Likewise. --- diff --git a/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-1.c b/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-1.c index e66fa73..e5da00b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */ +/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized --param case-values-threshold=5" } */ int global; int foo (); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-10.c b/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-10.c index 7b8da1c..7b21c99 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-10.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */ +/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized --param case-values-threshold=5" } */ int global; int foo ();