From: Martin Liska Date: Wed, 9 Dec 2020 14:24:36 +0000 (+0100) Subject: testsuite: fix 2 tests on aarch64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33d2f41785b24ad43c5a9d52aa289e33ac838f86;p=gcc.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 e66fa736e10..e5da00b62d6 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 7b8da1c9f3c..7b21c99313c 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 ();