From patchwork Wed Feb 8 20:45:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 54600 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3678338wrn; Wed, 8 Feb 2023 12:46:36 -0800 (PST) X-Google-Smtp-Source: AK7set/cJJvBO4tc6rerDpUBw02nysYAzcYLc7t4mHAddhJuD3cLJIcewT9J0ywuJbcnFyVgWrUJ X-Received: by 2002:a17:906:5012:b0:888:a0eb:c5d8 with SMTP id s18-20020a170906501200b00888a0ebc5d8mr9542722ejj.28.1675889195931; Wed, 08 Feb 2023 12:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675889195; cv=none; d=google.com; s=arc-20160816; b=jqDbek39rh4Yq0xpez30RMIYm+RtkvCn8lD60BKSxnCwjFYDY1sYVJA+arl3oSCFa3 6iYxBJhQRImx8RowkVY5J/Z8oSbfUOzotY01hJzvQBrLPER4wrzu1r6Gr4LMPkHz2mXy S+9Sivh03s/Zcnp9vAuAyuF5NhhBSRsbeFf5ICIIB3yoPJ5hWoYJGRnPuvn9aFfctWq8 HlwaB3F+b53Ex6BR009/IrZ4Z4HuZxb1rU5YsHTM4IzXGzhJg3sU/LVi++wejigqs3w/ 1pBz3HURWLXhJeeD9svSBP8BHvd+Iu3zTmyL4ZqNZqMhCLSnfbzU8XtX9W90Fwe6H+PY H0Pw== 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:date:message-id :content-transfer-encoding:mime-version:subject:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=JPcKgs2eVZRAXZRz7GDpJzWj281zk+L8Y9wLgP3YP7A=; b=oQiCk8tahgFSdpzdEpwSEyl73ATJNCSRyd5YRBPEXSt0ClY1mavSAOEqzTHmkgVE5I CIe9BWtL5HTvyJ9f5lz/Tmtu0sB8Av7LeEH9d8twaFWv8uuMcY386wngfY1x55g74ehB eDN9W2+8SLHnSAs9smPthmwWqxHVvu/8NDFf6C/qVN51Y8PwAGwyIj3itvN6WsshA0th ccZ2gh1MCPZIAzAHbepGI6396hFuB8DpcmN9Q66TPdjiKIRTu9IhDO1ruKcWI+oyZ1O2 peOG3ANvgpbToCBw4u59fEoE8ws12XgBi+mvKkT5S83/dXZ1e4ERJ2soecSySrHkkai1 tY1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="w30dvy/B"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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. [8.43.85.97]) by mx.google.com with ESMTPS id fg22-20020a1709069c5600b0089e5b78d1f1si12820200ejc.175.2023.02.08.12.46.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 12:46:35 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="w30dvy/B"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 02CA03858412 for ; Wed, 8 Feb 2023 20:46:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02CA03858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675889195; bh=JPcKgs2eVZRAXZRz7GDpJzWj281zk+L8Y9wLgP3YP7A=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=w30dvy/BbAhwaOoOiKo3BdWd4HB3JuUOaUV6fcJS/YGqyv94CAuWBSxSmhdp+8b/6 QA9G2RETVIsgypF/HUWwAfcJ82uRO3MpsUafctgvomk7if8DVOLpBHzL9fKulkmTGs B9IurEWuriyV/fjhA36SWZML92PWYaWaD8W0MMIY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by sourceware.org (Postfix) with ESMTPS id 8DE443858425 for ; Wed, 8 Feb 2023 20:45:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8DE443858425 To: Subject: [PATCH] testsuite: Fix asm-goto-with-outputs tests; limit to lra targets MIME-Version: 1.0 Message-ID: <20230208204551.0D78A2040B@pchp3.se.axis.com> Date: Wed, 8 Feb 2023 21:45:51 +0100 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, 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: Hans-Peter Nilsson via Gcc-patches From: Hans-Peter Nilsson Reply-To: Hans-Peter Nilsson 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?1757297189411478742?= X-GMAIL-MSGID: =?utf-8?q?1757297189411478742?= Sanity-checked for cris-elf with the check_effective_target_lra correction in https://gcc.gnu.org/pipermail/gcc-patches/2023-February/611531.html Committed as obvious. --- 8< --- These tests spuriously lacked a "lra" limiter. Code using "asm goto" with outputs gets a: error: the target does not support 'asm goto' with outputs in 'asm' compilation error when compiled for a non-LRA target. Limit to LRA targets as other asm-goto-with-outputs tests. * gcc.dg/torture/pr100398.c: Limit to lra targets. * gcc.dg/pr100590.c: Ditto. --- gcc/testsuite/gcc.dg/pr100590.c | 2 +- gcc/testsuite/gcc.dg/torture/pr100398.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/pr100590.c b/gcc/testsuite/gcc.dg/pr100590.c index 5cd36877fa1d..8d1e1a0d3064 100644 --- a/gcc/testsuite/gcc.dg/pr100590.c +++ b/gcc/testsuite/gcc.dg/pr100590.c @@ -1,5 +1,5 @@ /* PR rtl-optimization/100590 */ -/* { dg-do compile } */ +/* { dg-do compile { target lra } } */ /* { dg-options "-O1 -fno-dce -w" } */ int diff --git a/gcc/testsuite/gcc.dg/torture/pr100398.c b/gcc/testsuite/gcc.dg/torture/pr100398.c index 41eaddee27e4..4fc1168d22fd 100644 --- a/gcc/testsuite/gcc.dg/torture/pr100398.c +++ b/gcc/testsuite/gcc.dg/torture/pr100398.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target lra } } */ int test5_limit (void)