From patchwork Mon Nov 13 14:26:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164503 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1239209vqg; Mon, 13 Nov 2023 06:29:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWqBFCPiswpx4nqp/hFH7LW1IjiXoPeQpm/jyVUNHy/F4epi81ofTI6dBDC58mRFKuzQqN X-Received: by 2002:a05:622a:8a:b0:421:b37c:43d with SMTP id o10-20020a05622a008a00b00421b37c043dmr11929732qtw.10.1699885747497; Mon, 13 Nov 2023 06:29:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885747; cv=pass; d=google.com; s=arc-20160816; b=ayjyDZxoDmJv/Z1wHFAsiRdbRsMCAM81qi9ngWkvryhlIRdTC3+rxYAYOzhuv0V7Gd AOLQmGD75KPdTY5CqyUO+JPS5JMPoOMMRyfZFUWUnIND4b7hP7TaoLE2WLNkycvwQimk ryv7EowQ27mosAAzFa2fWrmmWzm4LrjJJPiMCgHYh12LsZxvxYoNfWkBwXT4NM2YoPTK DE50wa0SZbZOrUOYVjdaTM05RETlHUIPcDT5s5XpWNVCQ2ANMRem57efjePcMoV0lBHj OiFpLarj4JIx7g93jZyYWnzqbV67ZaaLdlsDWWjdTD17EJBWHKTPLEvRIvr/gZJT6Iez 4HEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:arc-filter:dmarc-filter:delivered-to; bh=ny2aJCr4v0JpSMxXjK7YiESapyiad2SKblClwQHO6YQ=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=O8NO3NLz7udxJy7XzXu4jtf85F4Z9tDw/638UmnnlGYup7KIhcYTx1TSh721Gxm5t4 LwJi3ruU8AVox/+co2mBMhs+D4AmgD33cC4p1qzw+41CVQYwzJ7wgTBcEPz2ALYTqUhc d/X6CNRdvn7UYDS5bYY2u+w12gHEN3xm4hbPRT+FecETBmIAg7/dbpt5b0vlEmn0AMzh d+qDEINk5sLnHvE9a6vOHZmavZMVFMCgYfrPY/k3+3zuoPVzdKwBnT1nwQiHAgNVyPbG hZlsQPzs/lHMA7Eun4DqoX1FUcRctq3GQTk7pBXjTULXJu8cqCdLD1WuNAI+ggPxmmXS Aaqg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id y16-20020a05622a165000b004198562004csi4718488qtj.521.2023.11.13.06.29.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:29:07 -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; arc=pass (i=1); 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9212B3873553 for ; Mon, 13 Nov 2023 14:28:10 +0000 (GMT) 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 CFCB23938252 for ; Mon, 13 Nov 2023 14:27:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CFCB23938252 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CFCB23938252 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885651; cv=none; b=LtQ/uhPk/T8x8Scq+9GDfB9zECL7fQihbJQ3Prxf6weok4L1NsB6wl3n6BS0hnUkTUy/mr3KC4aEMlW8W+CNd7EvXX7/21aMxvgJbyxita97Gxy2uMmXrt84wA8sR1gtVSkWbRgZ0LrlYzb2MNF5JqX+sEoUMsaZHYQ4yzryB4Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885651; c=relaxed/simple; bh=bsctNbt4suBsr/H9EzGj3sran3yhqmUdT0PpyWg2THs=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=bW5xHl7tTNJI8lrlBp8BKkEkhxPn5t2fsv5ka8lOHrPBSsxcejSqmdhjifEyGTzcvdauwwQ55uZXn4PvPCKcwKUrcNkQN+YjbIViumKsXiQXH3D9vrGShrOUdKpNRqi15uVuW87iLkzuAZpbJK6qw6eSOnWrgqnur8oo4c4L81E= ARC-Authentication-Results: i=1; server2.sourceware.org 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 279F8FEC; Mon, 13 Nov 2023 06:28:16 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3975A3F7B4; Mon, 13 Nov 2023 06:27:30 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 10/22] arm: testsuite: improve compatibility of arm/pr78353-*.c Date: Mon, 13 Nov 2023 14:26:46 +0000 Message-Id: <20231113142658.69039-11-rearnsha@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231113142658.69039-1-rearnsha@arm.com> References: <20231113142658.69039-1-rearnsha@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782459397777449534 X-GMAIL-MSGID: 1782459397777449534 Again, use the infrastructure available to improve the compatibility of these tests. gcc/testsuite: * gcc.target/arm/pr78353-1.c: Use dg-add-options to manage target flags. * gcc.target/arm/pr78353-2.c: Likewise. --- gcc/testsuite/gcc.target/arm/pr78353-1.c | 3 ++- gcc/testsuite/gcc.target/arm/pr78353-2.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/pr78353-1.c b/gcc/testsuite/gcc.target/arm/pr78353-1.c index a107e300269..56480774ce4 100644 --- a/gcc/testsuite/gcc.target/arm/pr78353-1.c +++ b/gcc/testsuite/gcc.target/arm/pr78353-1.c @@ -1,6 +1,7 @@ /* { dg-do link } */ /* { dg-require-effective-target arm_arch_v7a_multilib } */ -/* { dg-options "-march=armv7-a -mthumb -O2 -flto -Wa,-mimplicit-it=always" } */ +/* { dg-options "-mthumb -O2 -flto -Wa,-mimplicit-it=always" } */ +/* { dg-add-options arm_arch_v7a } */ int main(int x) { diff --git a/gcc/testsuite/gcc.target/arm/pr78353-2.c b/gcc/testsuite/gcc.target/arm/pr78353-2.c index 2589e6135aa..c070d7275bc 100644 --- a/gcc/testsuite/gcc.target/arm/pr78353-2.c +++ b/gcc/testsuite/gcc.target/arm/pr78353-2.c @@ -1,6 +1,7 @@ /* { dg-do link } */ /* { dg-require-effective-target arm_arch_v7a_multilib } */ -/* { dg-options "-march=armv7-a -mthumb -O2 -flto -Wa,-mimplicit-it=always,-mthumb" } */ +/* { dg-options "-mthumb -O2 -flto -Wa,-mimplicit-it=always,-mthumb" } */ +/* { dg-add-options arm_arch_v7a } */ int main(int x) {