From 33d2f41785b24ad43c5a9d52aa289e33ac838f86 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 9 Dec 2020 15:24:36 +0100 Subject: [PATCH] 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. --- gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-10.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 (); -- 2.30.2