From patchwork Mon Nov 13 14:26:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164514 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1242778vqg; Mon, 13 Nov 2023 06:34:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpZZ/vfeIT1vp+jJZ0pESLFWoYeS2SK7gvkrQ0fxtZ6jBkpN4gNProlGIZm35weo9IywhU X-Received: by 2002:a05:620a:c41:b0:77b:dd1d:2ae4 with SMTP id u1-20020a05620a0c4100b0077bdd1d2ae4mr5563708qki.4.1699886057030; Mon, 13 Nov 2023 06:34:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699886057; cv=pass; d=google.com; s=arc-20160816; b=kKo67NINgFUrbIN8X2l0EDfgIBpqP+DZ+FmAnMwZlcMmbBecg7O9dGkMM4XX1WFoE+ Ni424caHr4n/wO5PEZ0tV+iiiNZ1QK1kJboM6AhFC0cMTfIDg6Me4foujuInlFzBbUYO VbfHvIS8VD+WcGFWgZ8CRs9x+rBLqczawZOXARZ9QqtC/hENEs5ib8XGaNqM8nPHCwen Z8g+bNqjNiQ5+sQumSfLTAGQJr0HFVpD9e1SVY8A0A84puP9OTxxV1Lqmjarke2gFVj8 YAXMlhHBBGIJwAKRSqCTPK6gnmujM2S8CDT14dq7PbV/82cO08dnq2wQT9TXSlewK4UR r72A== 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=d+VVXgLFVvCN+Sw7QU/I3RXPTVLK5uUP9ywOxCaAXVI=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=rkc2sRRjsbN/N1JqgHriWQOLaCFx8YRAhqx98DR7/O1yKrrMgp1WE/CDmEiqQYrJ9+ AKR+rwStnJskzHufscuRHTuqz0W1cpBSiTaQuBwrqHtZ+3TI+oHxV8zrsisJytUETcrf 5pZ6OTYAErhpGNAf3xxDTLHrC1ZBUeGtywQB7/4r94UWVodbHAt8dcOYB8sdcSbpSuEQ hIJuarc1ikZo90l+tajDbq/nxTiNPL2CVgoxdWCSpbmjT8wf6oYlUGm6Ub7Lq5C5VDF0 mnD82CeLj3GMZcfXud60pl8OmT8NOEu4OWJRcggd8BP5nMsKLqjFlgPYi8F2s6xgjGPB xZUw== 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 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ay37-20020a05620a17a500b00773f4e709efsi4555749qkb.275.2023.11.13.06.34.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:34:17 -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; arc=pass (i=1); 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=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 52FB0395C03C for ; Mon, 13 Nov 2023 14:30:14 +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 AD6413948A58 for ; Mon, 13 Nov 2023 14:27:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AD6413948A58 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 AD6413948A58 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=1699885661; cv=none; b=cOnS2Vhe27dS9xvygFc72mDDBlL/p7hJzVrKnpPSh6DHjxsDACzxglr+RN5r6GMKM6B4TGwT4WFFvW3Tx3GobO1I1F98CuA+oV6nOrEe/UPjsyR4D+y2SNLpEv3k5TVy/PqebdCv3p30lrgkyELwHO0jQkcT1jjzNq1RvrF4QZg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885661; c=relaxed/simple; bh=hFEHZk3eK6JaQi89WC5Y3/OdLWxqs5CyStlnE+MbDvM=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=szma7cFkB3Plbimngq52Klln9OBTiCvR7Oy99COVGbl4sEmNdDrLhXCwDlxZgyQGcgvMEk/Hgh2I6Ion8z/Q25Cor9CIjza5YdpQ8Q09mPnUS/ilMDcbwRgJhlyK4EtUhLX4W1VSL5zS7z3c66dTx6l25xUFj5tZzqQnvSzdINc= 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 0D9C71007; Mon, 13 Nov 2023 06:28:26 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BAA8A3F7B4; Mon, 13 Nov 2023 06:27:39 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 22/22] arm: testsuite: improve compatibility of gcc.dg/debug/pr57351.c Date: Mon, 13 Nov 2023 14:26:58 +0000 Message-Id: <20231113142658.69039-23-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.0 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, 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: 1782459722309539228 X-GMAIL-MSGID: 1782459722309539228 This test is arm specific and requires neon. To improve compatibility add a new test for armv7-a with neon and use that. gcc/testsuite: * lib/target-supports.exp (v7a_neon): New feature-test target. * gcc.dg/debug/pr57351.c: Use it. --- gcc/testsuite/gcc.dg/debug/pr57351.c | 7 +++---- gcc/testsuite/lib/target-supports.exp | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.dg/debug/pr57351.c b/gcc/testsuite/gcc.dg/debug/pr57351.c index 236d74ddedb..50861a4bf88 100644 --- a/gcc/testsuite/gcc.dg/debug/pr57351.c +++ b/gcc/testsuite/gcc.dg/debug/pr57351.c @@ -1,8 +1,7 @@ /* { dg-do compile } */ -/* { dg-require-effective-target arm_neon } */ -/* { dg-require-effective-target arm_arch_v7a_ok } */ -/* { dg-options "-std=c99 -Os -g -march=armv7-a" } */ -/* { dg-add-options arm_neon } */ +/* { dg-require-effective-target arm_arch_v7a_neon_ok } */ +/* { dg-options "-std=c99 -Os -g" } */ +/* { dg-add-options arm_arch_v7a_neon } */ typedef unsigned int size_t; typedef int ptrdiff_t; diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ae43dc97872..43a040e135c 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5425,6 +5425,7 @@ foreach { armfunc armflag armdefs } { v6m "-march=armv6-m -mthumb -mfloat-abi=soft" __ARM_ARCH_6M__ v7a "-march=armv7-a+fp" __ARM_ARCH_7A__ v7a_arm "-march=armv7-a+fp -marm" "__ARM_ARCH_7A__ && !__thumb__" + v7a_neon "-march=armv7-a+simd -mfpu=auto -mfloat-abi=softfp" "__ARM_ARCH_7A__ && __ARM_NEON__" v7r "-march=armv7-r+fp" __ARM_ARCH_7R__ v7m "-march=armv7-m -mthumb -mfloat-abi=soft" __ARM_ARCH_7M__ v7em "-march=armv7e-m+fp -mthumb" __ARM_ARCH_7EM__