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: 51978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp284079wrn; Thu, 2 Feb 2023 06:55:28 -0800 (PST) X-Google-Smtp-Source: AK7set+R8yxIJRuNXJGX8vOkuTq5WhveCOBRPk/I8TWXNLNxpX1yj4ztsnNhieUELqthpgq4eVjK X-Received: by 2002:a17:906:c411:b0:884:d15e:10f0 with SMTP id u17-20020a170906c41100b00884d15e10f0mr7069014ejz.23.1675349728725; Thu, 02 Feb 2023 06:55:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675349728; cv=none; d=google.com; s=arc-20160816; b=ggySXHEgei7z0KawTJ9kNRh2VFRcVmDVsGhynxiNC+HJLEZcnqojX1Nf3ri/RIYShH 1CiXvt2+VQByP6N1xrtHb7yvNv6/UhBJTunwTi9VozNPEMBNXLYQoWjC8Xqm0knkaR8p e3DLlcRayWVAR7YPUMyiQQiYB4labNnKJtBDePesWtovVUBDG/GgYqDwbRTgjoXKwBaC jKlowQy8b1I+0rJqqY/7JhdWX++yp01XPgNcTNERwCTL9raFRRHHNrYlhPbfRUt5pIRe l/fBn7nUvqdV4YT2SoHzNXsKGAeSMDVOi7MkdbdgahgYPR1nCkAqQR4IPABbTQKQAU7O nHZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:date:subject:mail-followup-to:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=Zi9XqeVtNWDedp1THUslRbqqAu2sZbk6i9GgB0Yx4aQ=; b=HQtqwowxbEkKCuYOlO90wub14/mrecHK2lzlnBvF1PZPPWmqXWp4oee88Qarq29i2n 55NXREI4edKJeknw2E8v1ypNMjH1iWt4yAIgSyjgzI3CKEs6ccHSJ+YYIYfAZ8hpcOfV NSxwNmZg26RKMXLi6Po5mvMAHSb4jGidzVrZ9NBC9PoXZRBjoEb6wqz4vbjVdk8mxl/+ 1l8yPhr7qLyvLIrGMx41vcper/lDyFn0YicX8NnEHAfgWwf8RPCVFBi6LyauDmlF5QMD nPVx7da1YUDvaJmBwyxMw1Q38Q2gE5m+JPCxJoHg8/k1yN/Kr5QDYzvtE2OHNcvaaj/U c/dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="aJ7Ao54/"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id g7-20020a170906538700b00870b0d90078si25654267ejo.644.2023.02.02.06.55.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 06:55:28 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="aJ7Ao54/"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 87A2B3858C53 for ; Thu, 2 Feb 2023 14:55:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 87A2B3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675349727; bh=Zi9XqeVtNWDedp1THUslRbqqAu2sZbk6i9GgB0Yx4aQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=aJ7Ao54/Mv/Hnyz7ae+Ed0cNjfe+gzuVq0uTqDXRn2dyW4vcF3RHC9zFmdAV6aFba +eLVFIUrnmaQ+PzXx5PzwPgCLLryvL01QVzMXOUtY0/+SAS01ZaEH2F/cjpmtqJdtJ TBLIF91smcrv3AiPJhUMDZo1bemOAJeFAh3oetYA= 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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756731516665170333?= X-GMAIL-MSGID: =?utf-8?q?1756731516665170333?= 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: