From patchwork Mon Nov 13 14:26:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1239637vqg; Mon, 13 Nov 2023 06:29:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEINeM1nxhXwM8eiabdISkVA69uYEAHFdX3qfBhpq3ePblRQW8QBvGfupZu8hXS5/z6GWo+ X-Received: by 2002:a25:73cf:0:b0:daf:483e:a65f with SMTP id o198-20020a2573cf000000b00daf483ea65fmr6117621ybc.56.1699885787911; Mon, 13 Nov 2023 06:29:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885787; cv=pass; d=google.com; s=arc-20160816; b=IGqygrsz5Yi2nQwCDUvPz8rtCwEuGVnPk14CHCezuYLjeQLT7n8iFO9jN7yjC4hKT2 f8B9hIUAlC+/gJeb5z4lsqjgALIeHlTb7O5U+sTKkXjHxzZfDhtAvoDmaPU41bLhMm3y 50wruHsSYNmsqBCAKpY/Ywz+B5L8Tqx64znBlt+wyBugcEtD+35nwrUJKBzz3F21KCeF CPYzDblH+pmcOU44qnhPGOLesi6rmjqyKDvZFZULuJJokN+NeL8uIZyaEtwpfTT7/FoZ Gid+JmitDyAy1ueptibNTV9Fl6w6bB5Ksq1vsgrSe1ucBqPplNmNHnWSzfD2niKXYyu/ fuwQ== 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=m9EcIP3JGVZZlMexZ+RrY7RZfSkfvTpvuSvLpP/3muY=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=yYv3nsCTyhfHyZ24zjBo+O96Ym69X+bU9VRe64ScXYeiQElep0PMzVIyxXXvBCwqY5 fr+SJlckzlqshYkb+uzKu6lu5aAmF7WSueQ1N5Wp51QKsC4oLEBEitSj63v+/fM3aCyN vtfjijZLSgq7RnEDdUinR1oY+TFDiPc3Uqm2G7SEqz0WCVZbYJ+U3SKS6OWze5um4D2t 1QprahBTHzqxixBbWj0so6dRGpAaCLTZUpeD9ui6qSM42+fWyViL3q3IEmAoPvc4EGa8 hMSR1775Fmcw0jvArNF7FHARomsJHAb8vFJNd7vwW1BF/8p9T3aDFsDwKFZhJJckuNBv SCMg== 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 da4-20020a05621408c400b0065b08cc3a56si4608279qvb.130.2023.11.13.06.29.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:29:47 -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 5BCDD3829FBE for ; Mon, 13 Nov 2023 14:28:25 +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 AE59738E08D4 for ; Mon, 13 Nov 2023 14:27:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE59738E08D4 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 AE59738E08D4 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=1699885647; cv=none; b=Z/e4SBNMP3+cG9UN80TMhYPwDZBqsMiYsjVdv6/7of/Y0cfhWy2C4pL9wUtcjFeoMHtXBh6cgtk4g3FyeIYme0WSz2b/dW9YP3u7rCqSYUJeivOmBOdkwvc5b+RUVyWX3Ow7g1WtC7FBPjIdWNyarhlAo8O3fkFH0pw/zmMcn5w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885647; c=relaxed/simple; bh=cX7XT9dVfFaD9/lRsSQP7NEp25ZbNydMDPqDGIhBpVc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=dnd9wd9jZhpJAFO4IjF0kTjwwkrfBAGgczRI7iwb+uJWRMJqrLU2xK+elekmBbrYH6Smw4f6hy71U1BIX9PRoC1Mps5zEtBIs2lyJBrV3lCZKJ1Ot3Z/L57RxRkTBMy1JOO+XOSHDhba3CxeoFpotjxrtOWJ7vAq2vK3bR9z57k= 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 CCE53FEC; Mon, 13 Nov 2023 06:28:11 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DEE4C3F7B4; Mon, 13 Nov 2023 06:27:25 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 04/22] arm: testsuite: avoid problems with -mfpu=auto in pacbti-m-predef-11.c Date: Mon, 13 Nov 2023 14:26:40 +0000 Message-Id: <20231113142658.69039-5-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.3 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: 1782459439783214918 X-GMAIL-MSGID: 1782459439783214918 This test overrides the architecture, but fails to describe which floating-point features are needed. This causes problems if the ABI requires FP for parameter passing and -mfpu=auto is selected, so ensure that one is specified. gcc/testsuite: * gcc.target/arm/acle/pacbti-m-predef-11.c: Add +fp to the -march specification. --- gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c index 9f2711097ac..6a5ae92c567 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" "-mfloat-abi=*" } } */ -/* { dg-options "-march=armv8.1-m.main+pacbti" } */ +/* { dg-options "-march=armv8.1-m.main+fp+pacbti" } */ #if (__ARM_FEATURE_BTI != 1) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1."