From patchwork Thu Feb 2 14:54:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 1736424 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=H9/q++c/; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P71zX3rw5z23gY for ; Fri, 3 Feb 2023 01:55:04 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 32DF3385842A for ; Thu, 2 Feb 2023 14:55:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32DF3385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675349702; bh=Zi9XqeVtNWDedp1THUslRbqqAu2sZbk6i9GgB0Yx4aQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=H9/q++c/n0/hFKIeUYDgZDbsOnVXziuTdAocAGFluryOD4w46KsjSr05k/m3opW6N 1SRbokbv3Ee9W3dVXMV1d8G5Fz28YHMd1pzDdSG7ks+AIUMCMThh6u+JN7+UXFEt/S 2M6akCMrnH21CHQe7z8xkPT6uXXp+fvecK9tFZJo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 25F0D3858C5F for ; Thu, 2 Feb 2023 14:54:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 25F0D3858C5F Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E80F1C14 for ; Thu, 2 Feb 2023 06:55:24 -0800 (PST) Received: from localhost (e121540-lin.manchester.arm.com [10.32.99.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6ACA93F64C for ; Thu, 2 Feb 2023 06:54:42 -0800 (PST) To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [pushed] testsuite: Add case-values-threshold to pr107876.C Date: Thu, 02 Feb 2023 14:54:41 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Spam-Status: No, score=-36.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Sandiford via Gcc-patches From: Richard Sandiford Reply-To: Richard Sandiford Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This test was failing on aarch64 because aarch64 overrides TARGET_CASE_VALUES_THRESHOLD. The maximum value that allows the test to pass appears to be 6, but the default threshold is 4 or 5 (depending on whether casesi is provided). Going for 4 seemed safest, in case any target-specific features force the maximum passing threshold to be lower on some targets. Tested on aarch64-linux-gnu & x86_64-linux-gnu. Pushed as obvious. Richard gcc/testsuite/ * g++.dg/tree-ssa/pr107876.C: Add --param case-values-threshold=4. --- gcc/testsuite/g++.dg/tree-ssa/pr107876.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr107876.C b/gcc/testsuite/g++.dg/tree-ssa/pr107876.C index 6cff2f1b166..d920ba050ea 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr107876.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr107876.C @@ -1,6 +1,6 @@ // { dg-do compile } // { dg-require-effective-target c++11 } -// { dg-options "-O2 -funswitch-loops --param max-unswitch-insns=5 -fdump-tree-unswitch-details" } +// { dg-options "-O2 -funswitch-loops --param max-unswitch-insns=5 --param case-values-threshold=4 -fdump-tree-unswitch-details" } class X { public: