From patchwork Mon Nov 13 14:26:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164501 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1238831vqg; Mon, 13 Nov 2023 06:28:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdolFLmxv+S4WKmFMLzxWCJKIAdV25j92ilYhXZ5Ck9fNMf29VmGNinuALKioj4qySo+tL X-Received: by 2002:a05:6358:908:b0:168:e5e7:e652 with SMTP id r8-20020a056358090800b00168e5e7e652mr2805792rwi.7.1699885713288; Mon, 13 Nov 2023 06:28:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885713; cv=pass; d=google.com; s=arc-20160816; b=QYimqj9PymXW/0biW9lOSUlVerpI4DudDa9lqbxNRCtquMj4Fdtxhaf5GWZHgWvzsz Sx9gD0kUqxdEkDbfU+ACoF8rJNpy0w2cXU/LwAA7wPrrjTMsECQxAZxnJz0eChto7hkm m88l4ntI+EfmF2qqPRPBEnU+/WDyCvGZFz9SDlMMvC5bnuDqXxQmpMRrsVmfgdhFxwaC dmQkgQ3k22yUUxNocOm5d75tCw4h3hWfca1i33s1sFiqEjdsCKRLBT+8uWx0aL0vQ4u8 PS2E0KM3ETyVq8uApGUdM7L4c1srF9Q4KDaLnNWGbYyxHjIJxHW/j+BZj/lvUJcbJOgf l/XA== 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=fiekx39Bh/obAVzktYlW4iEhSTCDpVSN36ojNFgPK4A=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=qNN/5QmsjX+TsTbDBMbJLqT7XcLmFk71/aRA195Dnlup4I2tP/f+Gicclh55ZYlMj/ Axs3+xPtCYnQ7sARFr6h1s/qnCB2PcojLum12SIMAliiTNc1G+KpwT4s2d3wWYHTuyAm /BZ4Z7ufug5EBQT4StN3Hu/HBmwTTKpDN1mAGRkYrnHycTduyOJ5hqliON9wpjF8vSOc HR8cEOYgWcXZvrOShveSTO1EHm/QJRHN/omd3S7vuEvmxfABJUIrQvZxcdgd3IkrrMwQ LOWQaycxG9dmc/i3Dn/zFS9SA4Xkpdp+iWe3VlVkCeKVuyPpnHHt31zFxYYxaHWnUtyY GBCA== 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 i13-20020ac85c0d000000b00421a4bd9022si4398766qti.231.2023.11.13.06.28.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:28:33 -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 432953959C96 for ; Mon, 13 Nov 2023 14:27:54 +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 7A68F3856962 for ; Mon, 13 Nov 2023 14:27:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A68F3856962 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 7A68F3856962 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=1699885645; cv=none; b=t1nKkystkdlzUfhMql7mmiTfmrhKWehY/z7RQAjH7EL7jAG03fVrFnrsqGMFKUj+LLaI2+fqzZjCOohBxdia6RolcxgZY2jhXPDfizgl75rql60KEUJ4aMxck50MMD1L6VQMvCEPHPO3jylQ8jT+YBH/jayKm1aF6PgrpwaVuqM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885645; c=relaxed/simple; bh=QkuyDKyH+q5L/BaLFgZGebBxEIIR1798FHr+3BpoxqA=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=HtfX/ktQSjGvKKSPmdIKFBVhdoW4/a/Z/DczVH+KB6yTntuBSm13FtamU2Azow7Irrljvsqz0Ylbiut9Q/aO7IbSal1D2MVN+XZDYDA4Cwmn6j8jPNezUi+t9/rQdRb0+uEwrrxhVNWHxcDJZN3CtDbo4M6JA8dTCab6k3Cx2zU= 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 A6F8F1007; Mon, 13 Nov 2023 06:28:09 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B7D5B3F7B4; Mon, 13 Nov 2023 06:27:23 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 01/22] arm: testsuite: correctly detect armv6t2 hardware for acle execution tests Date: Mon, 13 Nov 2023 14:26:37 +0000 Message-Id: <20231113142658.69039-2-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.7 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: 1782459361307975408 X-GMAIL-MSGID: 1782459361307975408 Some of the ACLE tests for Arm are executable, but we were only testing that the compiler could generate code for them, not that the hardware was capable of executing them. Fix this by adding an execution test for suitable hardware. gcc/testsuite: * lib/target-supports.exp (check_effective_target_arm_arch_v6t2_hw_ok): New function. * gcc.target/arm/acle/data-intrinsics-armv6.c: Use it. * gcc.target/arm/acle/data-intrinsics-rbit.c: Likewise. --- .../arm/acle/data-intrinsics-armv6.c | 2 +- .../gcc.target/arm/acle/data-intrinsics-rbit.c | 2 +- gcc/testsuite/lib/target-supports.exp | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/acle/data-intrinsics-armv6.c b/gcc/testsuite/gcc.target/arm/acle/data-intrinsics-armv6.c index 988ecac3787..6dc8c55e2f9 100644 --- a/gcc/testsuite/gcc.target/arm/acle/data-intrinsics-armv6.c +++ b/gcc/testsuite/gcc.target/arm/acle/data-intrinsics-armv6.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-require-effective-target arm_arch_v6t2_ok } */ +/* { dg-require-effective-target arm_arch_v6t2_hw_ok } */ /* { dg-add-options arm_arch_v6t2 } */ #include "arm_acle.h" diff --git a/gcc/testsuite/gcc.target/arm/acle/data-intrinsics-rbit.c b/gcc/testsuite/gcc.target/arm/acle/data-intrinsics-rbit.c index d1fe274b5ce..b01c4219a7e 100644 --- a/gcc/testsuite/gcc.target/arm/acle/data-intrinsics-rbit.c +++ b/gcc/testsuite/gcc.target/arm/acle/data-intrinsics-rbit.c @@ -1,6 +1,6 @@ /* Test the ACLE data intrinsics existence for specific instruction. */ /* { dg-do run } */ -/* { dg-require-effective-target arm_arch_v6t2_ok } */ +/* { dg-require-effective-target arm_arch_v6t2_hw_ok } */ /* { dg-additional-options "--save-temps -O1" } */ /* { dg-add-options arm_arch_v6t2 } */ /* { dg-final { check-function-bodies "**" "" "" } } */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 1a7bea96c1e..d414cddf4dc 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5590,6 +5590,24 @@ proc check_effective_target_arm_thumb1_cbz_ok {} { } } +# Return 1 if this is an Arm target which supports the Armv6t2 extensions. +# This can be either in Arm state or in Thumb state. + +proc check_effective_target_arm_arch_v6t2_hw_ok {} { + if [check_effective_target_arm_thumb1_ok] { + return [check_no_compiler_messages arm_movt object { + int + main (void) + { + asm ("bfc r0, #1, #2"); + return 0; + } + } [add_options_for_arm_arch_v6t2 ""]] + } else { + return 0 + } +} + # Return 1 if this is an ARM target where ARMv8-M Security Extensions is # available. From patchwork Mon Nov 13 14:26:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164502 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1238854vqg; Mon, 13 Nov 2023 06:28:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFn6GeDL/Q82Pelk/LpZnCJzVaCdby6WlqPW/JvAUeo/ozrWovkQmiRDIoG6+VfYB6dCeul X-Received: by 2002:a25:cfd6:0:b0:d8b:1407:f61d with SMTP id f205-20020a25cfd6000000b00d8b1407f61dmr6250042ybg.26.1699885715527; Mon, 13 Nov 2023 06:28:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885715; cv=pass; d=google.com; s=arc-20160816; b=pMm5tIm2XnJuJDz4Ramg/gmprOLbPHtirS+5zDRx+XXwW8QjrnbsmUg15NDUCBoDYa 3Os2a0IYHwrVZyB30FIun/bsA9WFW1CEZsfXCXEqFZ6ChRpAS9CIzU7r/qU6KADG7I4j R9FpPyoAVKNWtjFtgktdeFiudo+LQNdFYc7k1hEYNmh0YlgaC7ISPgZ5RydOaS7cAQDW sYVm5gun3EiKRFGbaJVl64xFbXACUMDwrNHbwqRsl9DDpr01n/9hysND3C9zxzsuvBmO 620X9nZn2PpezK1ISAWDXbIaaU27cacLfVoZGGiB8BvNWXXtjf6JGNXAc9cL2qqd5Q8d NL5A== 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=hjHwEHkXoZOMxD/jg28bgh5240Ym8gHwmoJOIH6Os2g=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=KifPunRmWExJUAxP8AwlzO2v9wKVQaGwbNVtDro0vjKrmsUwC2yG70EHdrIbikJ93H eRm4jDrm9dLVuim5dIoskLvgfdZWiqKNKGoCpvsjeNTsCf4rLuhto9nvaAIJiETVVeRz g9drlDZWThopb+3yyCSAimKT+VY50Ri3ib14itQJbaD7SO2Bt2TZROTp1wrluf6G0sLi pOzcigtWeodHREJh777ox6eZ3bkUxTbVH9/NXHJvUJUYflH43Kfk83cWfKqk7q8oOml2 RjHfTDyYGQ3+zrrMipZ2iolktgn1B54LROB5kOvjTlDV32ZsiRqGAqKFjVx0Lm9uV1jI MImQ== 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 f22-20020ac859d6000000b0041996c8044dsi4651550qtf.307.2023.11.13.06.28.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:28: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; 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 43C86396C8FC for ; Mon, 13 Nov 2023 14:27:55 +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 3DFCA38618A2 for ; Mon, 13 Nov 2023 14:27:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3DFCA38618A2 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 3DFCA38618A2 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=1699885646; cv=none; b=sRP7OROZyB03xwI9KvkXUMmuqKfl4WtM7YheIk05l2WWTrG0tKHEoJphzFZgNa0vVy2vL94ACnF/P74xcNUijfEYl1YoN6zwj/zuDp0d8J2KDYuh8ybDxQpJbGr0BhtX/dR5IiJGD0bJp8YkwNwPlSvGKUyGYc5ViNQhddbsFuQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885646; c=relaxed/simple; bh=WynT6Oq/B43Sc7si64hKZDvyIJx7OjTFXGvpijfQfSI=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=JnalE/9UjfXzM8tzKz4a46eGPbVm+VLG328CBHvT8zPBTHaJ91E/E+mA7ISDf8k/mHqbj214cBFvUlfAtJSnOZ6oH34Te702aCzQig0RxWGK5IwqlMg5k4mj6EGQio3ycuTofx9Vld2XizRSQWQa/zpqo8nDLFzDYLyC8KGtjd8= 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 62414150C; Mon, 13 Nov 2023 06:28:10 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 740D53F7B4; Mon, 13 Nov 2023 06:27:24 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 02/22] arm: testsuite: correctly detect hard_float Date: Mon, 13 Nov 2023 14:26:38 +0000 Message-Id: <20231113142658.69039-3-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, 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: 1782459364324584948 X-GMAIL-MSGID: 1782459364324584948 Add an arm-specific test to check_effective_target_hard_float for Arm to handle cases where we only have single-precision FP in hardware. gcc/testsuite: * lib/target-supports.exp (check_effective_target_hard_float): Add arm-specific test. --- gcc/testsuite/lib/target-supports.exp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index d414cddf4dc..ee173b9fb6b 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1420,6 +1420,17 @@ proc check_effective_target_mpaired_single { args } { # Return true if the target has access to FPU instructions. proc check_effective_target_hard_float { } { + # This should work on cores that only have single-precision, + # and should also correctly handle legacy cores that had thumb1 and + # lacked FP support for that, but had it in Arm state. + if { [istarget arm*-*-*] } { + return [check_no_compiler_messages hard_float assembly { + #if __ARM_FP == 0 + #error __arm_soft_float + #endif + }] + } + if { [istarget loongarch*-*-*] } { return [check_no_compiler_messages hard_float assembly { #if (defined __loongarch_soft_float) 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." From patchwork Mon Nov 13 14:26:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164506 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1240732vqg; Mon, 13 Nov 2023 06:31:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1cAC8sSFeM13fgDcfMhXzCY4L5bCatq26qiaA9g81vmjrSGuVOc2rLAqnCRc4OqJdEhbv X-Received: by 2002:a67:e04e:0:b0:452:78ea:4aec with SMTP id n14-20020a67e04e000000b0045278ea4aecmr2945272vsl.7.1699885874527; Mon, 13 Nov 2023 06:31:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885874; cv=pass; d=google.com; s=arc-20160816; b=nQwxvc2yrutrzzoV0iNcVJi/0LaRRC2wIfu92WRD0dm3mJzcVJ3CllRKHseaALJ8mH u5HtW/tzWda6hqWKT/dpsJVfUtUS3nDsrubYiIwat0Zbs1tTAl6gVqTE9BMuT076i3t2 3prK95dsq1jzQ08GhVumwnTOM/JhXTh4HOMf4M2bNyMMSo1gUiI7Ptk+eXytCb6tg39m 33tjL4uCSC4jLhd+1GMucshgWOJl+zXt3cXadOGAVGNx6THfWpGvE9wda67byHRArvgH OeFrQwvFCixAi1TBa9esLARKOzhi9+PYqdTCGtkCuT4fMogHsy+kPHodqIqUrqb/7VGb /FrA== 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=Yv67gSC+72U6HA/VnEMWaIVYsrKAuq4iIatUfLYdmm8=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=wgifmH74ig++PhA/bZuny0R8Ch/154/XhOWYEpZ4vCoQccP2ewGxPJf2uUoyS/pYns iGWNxJ0xEC9ZJrZyup5JPdcK9d6ov5+7RyMV+mHEIFlSevhtXuE1M0ILjO2AJOfCja3O BiKnAfJWVx14lyK1c0V7LuQdbLaQ8YXPLpjNlrWv6Xa25ruBTM6eRVdQXCGq9Zxo6Tnw frbB8VsxGpOZNHwgFu5n9us0aoVY2c1U7vLD0e0ObLQBY3oC12Kcdl6N0syA06s799Bc 0vXPQ/ARCF5YMRfaOYZ1gIlHtBM4vUibtemF3gbAqYSyROGgy7ptbqDT98cu4v3Kv+Nd 3i5A== 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 f10-20020a0cf7ca000000b0066d1790f92dsi4654791qvo.211.2023.11.13.06.31.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:31:14 -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 A333E391AB45 for ; Mon, 13 Nov 2023 14:28:56 +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 59CE538B67B2 for ; Mon, 13 Nov 2023 14:27:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 59CE538B67B2 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 59CE538B67B2 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=1699885648; cv=none; b=FR0yxpPBAV3TJ0lLGCM+fheomxsdFp6D7aW8CbLZglE5Bsq51Aari+Iqt4Mb5S/Kij39MN7vdJUFhIxxTgMxeEUD49EUc6gix9GjhqV0aZyBebDaW6fSPOn5pbkVFKiO+gPx7MgoxIRA/k4mtDx/pY+B3OeCTCAZ57zP0xywr7Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885648; c=relaxed/simple; bh=HHatzkMr7TFmEoFkqEBaoxPQD9lHj9ZTcgiVgFLGPbM=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=YJYVHeLv9Q/b7VYI20kzDfja5PJYVM2K733mn+/HxzVhmVvb0YTNIlQqOECWKWx9Z26OvNsrLKnWqyM1EjT+1TsO/cUuhZpi7QAK1UAseMfUdS8/oCwv/SGW3PHEz0AbNGv6yHyFNhIEiE3Or6M60ui/HNcai+Q0A7hTyew9YsM= 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 89CA61007; Mon, 13 Nov 2023 06:28:12 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9A24F3F7B4; Mon, 13 Nov 2023 06:27:26 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 05/22] arm: testsuite: avoid problems with -mfpu=auto in attr-crypto.c Date: Mon, 13 Nov 2023 14:26:41 +0000 Message-Id: <20231113142658.69039-6-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.2 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: 1782459530742767584 X-GMAIL-MSGID: 1782459530742767584 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/attr-crypto.c: Add +simd to the -march specification. --- gcc/testsuite/gcc.target/arm/attr-crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/attr-crypto.c b/gcc/testsuite/gcc.target/arm/attr-crypto.c index 05e458f36b6..3959d0b67e7 100644 --- a/gcc/testsuite/gcc.target/arm/attr-crypto.c +++ b/gcc/testsuite/gcc.target/arm/attr-crypto.c @@ -3,7 +3,7 @@ pragma. */ /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */ /* { dg-require-effective-target arm_fp_ok } */ -/* { dg-options "-O2 -march=armv8-a" } */ +/* { dg-options "-O2 -march=armv8-a+simd" } */ /* { dg-add-options arm_fp } */ /* Reset fpu to a value compatible with the next pragmas. */ From patchwork Mon Nov 13 14:26:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164509 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1241848vqg; Mon, 13 Nov 2023 06:32:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFigfLRO4qBY0SKDVqf9YlfZbbxTaKvMtX88V/M8YTrlVcE+Thw9GjMbmYxWvhrWvcPvUOc X-Received: by 2002:a05:620a:8888:b0:773:c19f:9b9 with SMTP id qk8-20020a05620a888800b00773c19f09b9mr6547316qkn.46.1699885970688; Mon, 13 Nov 2023 06:32:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885970; cv=pass; d=google.com; s=arc-20160816; b=dlzxlB1gLT3d/lDazvN52CkdV9lrQSJbvhfbgMUs9hE0l97aHpZlKkB9aWMHOtoHgI FoFvG33vhhXyGYI3ihJl2976a3DczGJwaI7QjYDEl5l1xkZzp4jYZTI2LiKGK1AgtEZy JEVEVFfecamz83O9/2vYfxY9hkfmbVafd1JMKTzuTVSga+RYIzzb9VPLCFts0l3LAW3W h+c3i+Jc2A7fQNIiYZ0gNzpAo6ZR+6muwXuMplT80DvDfLOsLywrghGAFFYDLKXAJkWY evXaErZSn9hU3+OktgmHRe4huOC3aoKPB9BB9kEHej05FpxePOz5ZO+oAuPAZE8zUywd 1ysA== 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=TKeBSB8iBeRCoLSI8xfj7r+GguJdYNlHNlWYgQ7nu28=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=hDJ9Dudhgnw1YnBddEheld+UKk9ReotXSjbksTdYoBqxR4iNyUaniSu2SFPZOclUUs Q2j6PyxLJsyW6750osaT8IytCjDjqdS8H0tz1tc0QSHDB900o7YIZIdvw01gFNw+s8SA rHCp0siGF0xd88z5pJ82/LA0cOOP+ykL6cm06YHIuqeClx7bI9j5PLijDvY98MqSIBAd BLUmGRs07eeo1a1W8k+XcQOfn2H20raAfoTF/SZZRqNcNKv6tUnEUlDndiq8pmSolkev fUF4FCsFXrWPhaCA34FwzDp/gLT5T3p7hI+4kwTlTo2cLudBhwO8SzRCLA0dwZTX0n+z b/Cw== 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 dw1-20020a05620a600100b00777754211a6si5019794qkb.424.2023.11.13.06.32.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:32:50 -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 4331D3AA5CC3 for ; Mon, 13 Nov 2023 14:29:31 +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 461C1392C2B8 for ; Mon, 13 Nov 2023 14:27:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 461C1392C2B8 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 461C1392C2B8 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=Y3msrWadFe6XEcel5Wb8hpFGVbVNUCelW489nKGbD3WIXxRGJS4u4gkfNgOXzNNX/xsWQKSzkalwKY7Xente2wo7+JDYHPFchwegGiGEXAUKqQjwQz2enWeo/ik3FIuiKyMHjKIte0pp3Qm8nGhpGj5yjE2iOOcVzaxPeJFJdvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885651; c=relaxed/simple; bh=jltwrf0bfLlknjTz+uyd+u8IVogTwA2jgYvEtYOkMhk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=j4ZHmnMVWWodYz6/DEyBkKLPVTwOOkcGz3rmc78yk3B1NvHtCt1sKgUA1Xh7oEbKHl+3PNjosxI5+tQN1RDBs8p9ieUntZkMi8KsTIMWz4A0snsq330PzEfjC9lpoD6OBuPIVvp+XqTc5KJR4Wf7yiaDHB0r2kFjE0PnK47QMQw= 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 6C431150C; Mon, 13 Nov 2023 06:28:15 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7DE523F7B4; Mon, 13 Nov 2023 06:27:29 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 09/22] arm: testsuite: tidy up pr65647-2.c pre-checks. Date: Mon, 13 Nov 2023 14:26:45 +0000 Message-Id: <20231113142658.69039-10-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.2 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: 1782459631482387775 X-GMAIL-MSGID: 1782459631482387775 Another case where we can make better use of the infrastructure to improve the compatibility of this test. gcc/testsuite: * gcc.target/arm/pr65647-2.c: Use dg-add-options to manage target flags. --- gcc/testsuite/gcc.target/arm/pr65647-2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/pr65647-2.c b/gcc/testsuite/gcc.target/arm/pr65647-2.c index e3978e512ea..79637bfd9d7 100644 --- a/gcc/testsuite/gcc.target/arm/pr65647-2.c +++ b/gcc/testsuite/gcc.target/arm/pr65647-2.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v6_arm_ok } */ -/* { dg-options "-O3 -marm -march=armv6 -std=c99" } */ +/* { dg-options "-O3 -std=c99" } */ +/* { dg-add-options arm_arch_v6_arm } */ typedef struct { int i; 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) { From patchwork Mon Nov 13 14:26:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164505 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1240036vqg; Mon, 13 Nov 2023 06:30:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOIhADfy6Lcud25EUCrySpqeu7n7xDGjRiYLRCpbS0MFMz6uq/mhTf/6V+qbP4PuPNjXKV X-Received: by 2002:a25:adc6:0:b0:da0:29e2:d29 with SMTP id d6-20020a25adc6000000b00da029e20d29mr5520991ybe.42.1699885818083; Mon, 13 Nov 2023 06:30:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885818; cv=pass; d=google.com; s=arc-20160816; b=jbd2IaRyv+1QlzlpCqkcEDFEfIaNPZuQj9cCCbGdU1z/GEzAK15r/e9TX66yIARVt7 VtpdwdM4OToO2q2S6b9+mRb1BVQKdeeLGOHL25f4C8QdSXmmIY2dpVqwckJJ+bNEwQFx eMT9fI+dE5gL0jzHaFkG1ZZIn5qGu3bdyUOLgYgoYjB/QHclRZyNKBVtRbr5t8Dx1N+n b4wvMA2zO4NTQrpIwO/sQRMovRb6o59V9/CWLWd19W8iacDBPln5nxkEFKHZPlbi815m t2vtbsDfNXFQn2N5AuZ7lZpP5A6Vzu+67rYdyJ/OFD5/XnULQyIOL/5ZnBemhQ16Le/R ytqQ== 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=okM6tak8slvNzEgc2xWUCF6aUoS1U45U577pJDkSJUQ=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=z1cEEetE6jmlh5Kq1kZBSobnvFfhVCQ/Y2birn6xnq6P1FKaFyL2rAlLA0guq9X3Vh A+rHAAjWCDgn4TC3d1+B9R4GJSLYkbJYZcrjX/WLndioJEJHa2YNcKEp4SyJTvzm8/Od ifuMIHUSzrmlRXzlVrHBO4m2yV2mGREknoNOZXmvTATcHJgpmNCXuVumO3JCDMJNYRvQ bKwWV/W9K/gTLIMaRXUEWuwdQi4PAdkFe4PRXKNeNRpZyL1px7A8vP6oJsQtcHXANdWA nTCszXHAOIQ57EKDC6LZVL+XVm8hMUGF5+J4jmaP709ICNLtRLS0SwUcZJYt5CahAdp1 nbzw== 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 v4-20020a0ced44000000b0065d124684a6si4579396qvq.88.2023.11.13.06.30.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:30:18 -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 B09AD3933E83 for ; Mon, 13 Nov 2023 14:28:38 +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 94C85393826F for ; Mon, 13 Nov 2023 14:27:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 94C85393826F 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 94C85393826F 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=1699885652; cv=none; b=sLtUqVx4ydBrVYQzCG8dT7BSeo+de8MaiiRMMsF152sXtBa5alvS4CBKLqH3V7RGfMv4KAfkjEBMzrqpm27Zixc1Hi2Seu6Z3v9QKwD+QBAR7NWLTbFoLFNf/MBq+KSlBGSUygnJQoHqawfDqGtBPvmdQDYwgKSeDWWtoAb+Jyw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885652; c=relaxed/simple; bh=NpzR4xhThSU7tZXh+OD088hlrK/i69Tbatqdnz3MgeI=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=MF4hTDHZhEhabM78CHSVC87iKFGfQs8YUHLu1H6a5zcRcP/15AaFKKTunu9kP6EQS+Bpo4xyaYmsBglA9TxE7CqqIW7eokf1J4MiXGzJ0Tt8Mx6X9tATB1W38yWEud73p8u8vTfj3FIybA2jwmVaaVIiPaVY0yOSVhHrVSB5Was= 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 D78D51007; 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 E94BE3F7B4; Mon, 13 Nov 2023 06:27:30 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 11/22] arm: testsuite: improve compatibility of pr88648-asm-syntax-unified.c Date: Mon, 13 Nov 2023 14:26:47 +0000 Message-Id: <20231113142658.69039-12-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: 1782459471853128696 X-GMAIL-MSGID: 1782459471853128696 Fix another test that was trying to set the architecture directly rather than using the infrastructure as intended. gcc/testsuite: * gcc.target/arm/pr88648-asm-syntax-unified.c: It isn't necessary to try to override the architecture flags specified by arm_arch_v7a. --- gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c b/gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c index 251b4d5bc9d..53d0bb053fc 100644 --- a/gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c +++ b/gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c @@ -1,8 +1,8 @@ /* Test for unified syntax assembly generation. */ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v7a_ok } */ +/* { dg-options "-marm -masm-syntax-unified" } */ /* { dg-add-options arm_arch_v7a } */ -/* { dg-options "-marm -march=armv7-a -masm-syntax-unified" } */ void test () { From patchwork Mon Nov 13 14:26:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164507 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1241000vqg; Mon, 13 Nov 2023 06:31:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHke9HfGS4RbrNYwiA32aqt64uFFCQPMi1+Yw3YsW0z2SrhD+VduhB1jfVczfm3yyIV0SmZ X-Received: by 2002:a05:6214:190e:b0:647:4060:1074 with SMTP id er14-20020a056214190e00b0064740601074mr6553787qvb.22.1699885895919; Mon, 13 Nov 2023 06:31:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885895; cv=pass; d=google.com; s=arc-20160816; b=pOAYtqUxP8YlLeFoVuqRzN/ORJynyrLtx0LKD0IA8kqDSceAxoGvHYwN1FXS/+2rGu Zw3vaVvUkH4NnwSicBeu/fnskLaByzLV3If7mlo3XfZeSP0RklIBLsTtcEHrTEuRZS3T 5BY1GeudQEdD7Hz7A0izqBfUYtMGlYcHjBRCx1qRZTmhJ8p2uvWhPLCxgbofbsh6PJ2B aMcK6dt88nrE4v3EfCxMR7Ut6Z3FNUMytew8dzLD6fausXlH8wpd0765b6gjk6wTxIQR 15oz8fQqIT3ih0uKQYkV0fvyXVXzXTO+xTpo7Y8BAAngI7c4hmQzcjCyqmBa2pAaoG3m a+nQ== 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=pe2X7rM0dSCf0acS0yK4OXeSZrt3c8xrL8HVqD1PPYw=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=JAU4zgMhMNH3U1MwoNh7SoXO6nfkY6HR2vRwKCc5g/eou3wbaJvHsJmuo85UW+Nsxx iJ2tCseMjuAArwFeRqgcHxlXfCh3Sh9oYeIx6omnO0xxbjDPWty0K/0kF6OnNRXBUGH0 DS2ntj/glVtH4KF44Zg/CcfWicbGlBTLKyaz322V7OEhXeMFVMWq151n+z29BDebkV8K oDPI6AXCQsON6E+jf7kPytKr1vt6QAlaxQZzkvQfN8DiDP+qhQ4u+DxY93O0H1sZ12wA ZgyiQUN+CxCxe7rooJNPjvorMcfChIXrB2J8INqKwQrXuyI7t9ypS2sgfTh/DzAv40Ic iADg== 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 de41-20020a05620a372900b0076d74f9006dsi4730602qkb.330.2023.11.13.06.31.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:31: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; 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 182D238C0C1C for ; Mon, 13 Nov 2023 14:29:04 +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 5F96C38618BB for ; Mon, 13 Nov 2023 14:27:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5F96C38618BB 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 5F96C38618BB 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=1699885653; cv=none; b=XcT8zYrBTyU0zqJWrAlvBvLk77jVOMdUE4aOgtMzfPkXJM30oNlGrFoaxborujbBOnhMpSg1JebOZvDwN7q4VeQwScXOQRjbFe+Twci7Q+cfUFinLmGOghztztKzjyU0lWioj4dU8viR7bqr7q+1jZQMmGw7pvcykqB19ZmCpU0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885653; c=relaxed/simple; bh=NzZXrw/cv3pzqX8CPugwQBanXAzCOFw5Vav3mxT39hk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=G8tesFGYJuL9TatMyFE8sue75rg0q5t2aLQnD6JQXFTb7icM/aGGQ16ksAQAbsAIhY/HiyjIvmMYRcG++XGPDwlsjo6m8w7UNYi5nBwAMa8I1fGtYIW966PbGuVMf1Q/wVL+MdAsKliRxnhjihNY74ovwWRO7N23w/TpYmdy4V8= 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 93B3DFEC; Mon, 13 Nov 2023 06:28:17 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A512E3F7B4; Mon, 13 Nov 2023 06:27:31 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 12/22] arm: testsuite: improve compatibility of pragma_arch_attribute*.c Date: Mon, 13 Nov 2023 14:26:48 +0000 Message-Id: <20231113142658.69039-13-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: 1782459553273250690 X-GMAIL-MSGID: 1782459553273250690 These tests use pragmas adn attributes to change the architecture. Sometimes they simply add a feature using "+crc", but other times they try to completely reset the architecture using "arch=armv8-a+crc". The latter fails on a hard-float ABI with -mfpu=auto because it also clears the FP capability. Fix by adding +simd when the full architecture is specified. gcc/testsuite: * gcc.target/arm/pragma_arch_attribute.c: Add +simd to pragmas that set an explicit architecture. * gcc.target/arm/pragma_arch_attribute_2.c: Likewise. * gcc.target/arm/pragma_arch_attribute_3.c: Likewise. --- gcc/testsuite/gcc.target/arm/pragma_arch_attribute.c | 6 +++--- gcc/testsuite/gcc.target/arm/pragma_arch_attribute_2.c | 2 +- gcc/testsuite/gcc.target/arm/pragma_arch_attribute_3.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/pragma_arch_attribute.c b/gcc/testsuite/gcc.target/arm/pragma_arch_attribute.c index a06dbf04037..a5e1edad3a4 100644 --- a/gcc/testsuite/gcc.target/arm/pragma_arch_attribute.c +++ b/gcc/testsuite/gcc.target/arm/pragma_arch_attribute.c @@ -10,7 +10,7 @@ #endif #pragma GCC push_options -#pragma GCC target ("arch=armv8-a+crc") +#pragma GCC target ("arch=armv8-a+simd+crc") #ifndef __ARM_FEATURE_CRC32 # error "__ARM_FEATURE_CRC32 is not defined in push 1." #endif @@ -41,7 +41,7 @@ void test_crc_unknown_ok_attr_1 () # error "__ARM_FEATURE_CRC32 is defined after attribute set 1." #endif -__attribute__((target("arch=armv8-a+crc"))) +__attribute__((target("arch=armv8-a+simd+crc"))) void test_crc_unknown_ok_attr_2 () { __crc32b (0, 0); @@ -51,4 +51,4 @@ void test_crc_unknown_ok_attr_2 () # error "__ARM_FEATURE_CRC32 is defined after attribute set 2." #endif -#pragma GCC reset_options \ No newline at end of file +#pragma GCC reset_options diff --git a/gcc/testsuite/gcc.target/arm/pragma_arch_attribute_2.c b/gcc/testsuite/gcc.target/arm/pragma_arch_attribute_2.c index 2e8e385774b..189af170096 100644 --- a/gcc/testsuite/gcc.target/arm/pragma_arch_attribute_2.c +++ b/gcc/testsuite/gcc.target/arm/pragma_arch_attribute_2.c @@ -8,7 +8,7 @@ extern uint32_t bar(); -__attribute__((target("arch=armv8-a+crc"))) uint32_t crc32cw(uint32_t crc, uint32_t val) +__attribute__((target("arch=armv8-a+simd+crc"))) uint32_t crc32cw(uint32_t crc, uint32_t val) { uint32_t res; asm("crc32cw %0, %1, %2" : "=r"(res) : "r"(crc), "r"(val)); diff --git a/gcc/testsuite/gcc.target/arm/pragma_arch_attribute_3.c b/gcc/testsuite/gcc.target/arm/pragma_arch_attribute_3.c index 3714812cf26..eb7f990477b 100644 --- a/gcc/testsuite/gcc.target/arm/pragma_arch_attribute_3.c +++ b/gcc/testsuite/gcc.target/arm/pragma_arch_attribute_3.c @@ -9,7 +9,7 @@ extern uint32_t bar(); #pragma GCC push_options -#pragma GCC target("arch=armv8-a+crc") +#pragma GCC target("arch=armv8-a+simd+crc") uint32_t crc32cw(uint32_t crc, uint32_t val) { uint32_t res; From patchwork Mon Nov 13 14:26:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164512 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1242534vqg; Mon, 13 Nov 2023 06:33:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkjAKlaw821kKY1DA0a2z0BgfOdy1BwIGkRa7UXClaRJKH0CQxcxfuxqMTx4aPkYabxqNa X-Received: by 2002:a05:620a:4014:b0:774:21d8:b0bb with SMTP id h20-20020a05620a401400b0077421d8b0bbmr9835143qko.24.1699886030529; Mon, 13 Nov 2023 06:33:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699886030; cv=pass; d=google.com; s=arc-20160816; b=Ig93m7qq85JoAiHpE5zdqu/jRfe7e5KmbwrFZVCF4gCvQ1xNik8oXxeFs8OkjdTDcZ 8anB9vs02h+XLNoJCthmnz9z8Zt8T+3RhHzdYJd4lmKzkT+fSt45x8MKCixtucRo4PD9 CZtrpEFwM0UV6a2lnZ28RLuzEzUjvd9E50dfAxfUUvk1ZlPBzlfcPE2qjeJhE4WlGsqj 9hKENSh1BKQqcrVqjWcAme75fOukzoPS0fXm5aNy65MSn5KYWU4aS4FzJKWtMxrmmouG Ahi5gaFRWXvb2AqUY2nO4+1N7qG9xdqfSPPcpBPPI/0fhYFk0iP+0wLfeZEG/6WgMRZM KyFA== 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=NG3JXkRIrgxVzLwsedeiqqhEdb6+mUaUl3W5KCEbcGQ=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=cch+mYV6a1Q6/cQTD43RObJ6hnbnaA7cm0cvdNb06tPkrLf8kSJsj2a521YofJ9PXZ zRkXAgULU3XKO8cs1+DZ0QP2+lrKAC3Jf37krSBco6w86MxyAahQAqHkCB5snEghNKGy Okec8G0WFGdzaK6RlZiYrBHTn9vrdD+roBiwi3Rl3UNgzRxxIqglBIPWETkLGXM8KpyZ +brR+KKAYPYtBcP9Z+ZWSh9R8IwFbyivuCZJEzqQZZAzx8e8S3RyRghjBBtHg+Ta+hU5 NJYdT4dR70DrOm63vwtMB4BJ5mVpkcdj+i07zgB4Uh7/0g5rJLGCNaP8VaMsXwdYW5S8 +KQA== 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 s6-20020a05620a254600b007770c0ebe08si4730011qko.14.2023.11.13.06.33.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:33:50 -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 3874138BF24C for ; Mon, 13 Nov 2023 14:29:58 +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 77D4438B67BC for ; Mon, 13 Nov 2023 14:27:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 77D4438B67BC 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 77D4438B67BC 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=1699885655; cv=none; b=H7CVkdEbK1IwGyDx5hxqT5RbHgabNuGnJLTNnEVNIg/QZw0OAaUrgl1KzXAA7g7DO5y7jwz8mif0SGEj/kNCjKejVj35gtMieJpRw0c3b7WbeLilj6ceRRrfQ2ktmRttCxQRLYgm5mxIACEtxti4YCzVpIYwdSAC+cj5y1ZC10c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885655; c=relaxed/simple; bh=vr51LEBcZqGYsqtY3Wadot7+zhtxRhZ5+HEzfx/HDg0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=p7UfyvnjAfaLZTEOOT8zXhzBgnUl7lXE+FfShKkaWL8dsVVThREHjrGP7E4LcEvitggRYipChCTL7rq+8YqpEuib4tUv13cjFtxtNZYKJrmAVE37aoOJKN24BEW4CUP1jHnjKu1Knhj6xY4tygx9LsizzNrNbzsxR9UEb61/NDc= 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 BA7DAFEC; Mon, 13 Nov 2023 06:28:19 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CC4C73F7B4; Mon, 13 Nov 2023 06:27:33 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 15/22] arm: testsuite: improve compatibility of ftest-armv7m-thumb.c Date: Mon, 13 Nov 2023 14:26:51 +0000 Message-Id: <20231113142658.69039-16-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: 1782459694153576442 X-GMAIL-MSGID: 1782459694153576442 This test is specific to armv7m cores which do not support hardware floating-point. We can improve its compatibility by having the default options for this core specify -mfloat-abi=soft. gcc/testsuite: * lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok): Use soft-float ABI for armv7m. * gcc.target/arm/ftest-armv7m-thumb.c: Use dg-require-effective-target to check flag compatibility. --- gcc/testsuite/gcc.target/arm/ftest-armv7m-thumb.c | 3 +-- gcc/testsuite/lib/target-supports.exp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/ftest-armv7m-thumb.c b/gcc/testsuite/gcc.target/arm/ftest-armv7m-thumb.c index 363b48b7516..ba1985f5b0d 100644 --- a/gcc/testsuite/gcc.target/arm/ftest-armv7m-thumb.c +++ b/gcc/testsuite/gcc.target/arm/ftest-armv7m-thumb.c @@ -1,6 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=arm7-m" } } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" } { "" } } */ +/* { dg-require-effective-target arm_arch_v7m_ok } /* { dg-options "-mthumb" } */ /* { dg-add-options arm_arch_v7m } */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 9d2958626ad..316e34a34be 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5425,7 +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__ v7r "-march=armv7-r+fp" __ARM_ARCH_7R__ - v7m "-march=armv7-m -mthumb" __ARM_ARCH_7M__ + v7m "-march=armv7-m -mthumb -mfloat-abi=soft" __ARM_ARCH_7M__ v7em "-march=armv7e-m+fp -mthumb" __ARM_ARCH_7EM__ v7ve "-march=armv7ve+fp -marm" "__ARM_ARCH_7A__ && __ARM_FEATURE_IDIV" From patchwork Mon Nov 13 14:26:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164511 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1242111vqg; Mon, 13 Nov 2023 06:33:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdXKbPXW6masKAqCbofOj4dYpELFKJAgjHzn9gz0QEhL+oEygxg9YneHsDmWsRgAGLW5si X-Received: by 2002:a05:622a:20c:b0:420:5b48:4a54 with SMTP id b12-20020a05622a020c00b004205b484a54mr8445449qtx.23.1699885997951; Mon, 13 Nov 2023 06:33:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885997; cv=pass; d=google.com; s=arc-20160816; b=sFeWLu8Q5kIyfAbSxpZ1mqF/sJRF5Yzj4Nn/vE7IqH0/x/rbGqRMkaN+MA+IiyyEP4 IufgjOrmIf3sDDwSZseI1ROkAWvFIyOSCJ0+ETsuttJim1wXgClaMwwQ8l4XYnRv6ZEA PV/iauHT357kSTzzFpXDUFM5lmbFLwjT5FYaQAOGOOTGlaM8YY5RnrpJm+Y4pXvPvDVE A/dXWAe/kqoR4XfL9fR2ZmpP9RgSmsiJy9bFeQkEEpIafiBiJ8/1fyRr3fhA0wXC8HV3 6Jm5vPDzqa7L6q/JIcC2llyip/DlH4+RrKMGgXWw1N9bILjQa9pRSwn2vyEozEKhpHc0 q/+A== 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=E93QdB4+R+Duc1Oye43WqcjzsH4d8PaTFwOMvk/WRmM=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=CiPVRYwQaJ9aBwaNf7zuUxIXlCPpWDoculFKe51zXBqLSOnFZUpixSmNKaHcxBT3tF +2zJJ1OAWKcPBtDF7rPg9DwCNMFeNibmNYiLxVHiSJNDDIvZiYpdecQuJjVyH6uJmXgX lM5WNffLPKnIyIuF+lMAwiJ3BSnwhmWelOCdCEwOV+ES/g6F1MfyPHAqXhOT0+yuZH8s NZ3pKeJc6Nmyufx0zq353oN0SoJL9fnKDGJ1T9sq2uKvqc83cxoVhh/idskheabTb1P8 3rkfv2FnA9bx5XaN2rhmvPoL8+cZmGYORsGrR/qQP3DHjv+5DxAsy88b5ePek7lCj24t lteQ== 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 c10-20020a05622a024a00b0041b505bcef5si4842217qtx.415.2023.11.13.06.33.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:33:17 -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 A252C396C8C7 for ; Mon, 13 Nov 2023 14:29:41 +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 2AE9E393E26D for ; Mon, 13 Nov 2023 14:27:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2AE9E393E26D 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 2AE9E393E26D 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=1699885656; cv=none; b=hMVQv+aXgCGB3ixoBcB4/7ZKNXEZlpdcjiBxkAiCiYHJySPWWrfD0dOvLjSSwSV2UCKAfZOIxjYk/6f7mNP9K2N84IQPXUSues4+HgGlrq3jJ7yZByoifvHkM+3N8HN4ceHXxRMSVwdxW+KAE6olM8woClkatoaBj6tXhfBk43g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885656; c=relaxed/simple; bh=FMVfsPe8yCt/krQi1LygiupTQl/oCwgSImdgvwKrCXg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Eq4cOfodANy9AEUH9ce20xRFPAaCf0zKSMU1l2B6socL5BnkLF7CZtdzp57QkxO+VhyQnBfiQV2VnWgJ/tyVHMLbmBiShlyJ//uIvLHmlMMi0AJlCSgt43md9qcJSSMoJbrwbwaGas5Ceq036DORMldOqjJ87JD+gOaLil6iDx0= 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 767631007; Mon, 13 Nov 2023 06:28:20 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 87E433F7B4; Mon, 13 Nov 2023 06:27:34 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 16/22] arm: testsuite: improve compatibility of gcc.target/arm/macro_defs*.c Date: Mon, 13 Nov 2023 14:26:52 +0000 Message-Id: <20231113142658.69039-17-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: 1782459660181429407 X-GMAIL-MSGID: 1782459660181429407 Convert these tests to use dg-add-options for increased compatibilty. Since they also result in an empty translation unit, override the default testsuite options. gcc/testsuite: * gcc.target/arm/macro_defs0.c: Use dg-effective-target and dg-add-options. * gcc.target/arm/macro_defs1.c: Likewise. * gcc.target/arm/macro_defs2.c: Likewise. --- gcc/testsuite/gcc.target/arm/macro_defs0.c | 7 +++---- gcc/testsuite/gcc.target/arm/macro_defs1.c | 6 ++---- gcc/testsuite/gcc.target/arm/macro_defs2.c | 6 ++---- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/macro_defs0.c b/gcc/testsuite/gcc.target/arm/macro_defs0.c index 684d49ffafa..17fd157452e 100644 --- a/gcc/testsuite/gcc.target/arm/macro_defs0.c +++ b/gcc/testsuite/gcc.target/arm/macro_defs0.c @@ -1,8 +1,7 @@ /* { dg-do compile } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv7-m" } } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=soft" } } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" } { "" } } */ -/* { dg-options "-march=armv7-m -mcpu=cortex-m3 -mfloat-abi=soft -mthumb" } */ +/* { dg-require-effective-target arm_arch_v7m_ok } */ +/* { dg-options "" } */ +/* { dg-add-options arm_arch_v7m } */ #ifdef __ARM_FP #error __ARM_FP should not be defined diff --git a/gcc/testsuite/gcc.target/arm/macro_defs1.c b/gcc/testsuite/gcc.target/arm/macro_defs1.c index 655ba9334f3..bd22154321e 100644 --- a/gcc/testsuite/gcc.target/arm/macro_defs1.c +++ b/gcc/testsuite/gcc.target/arm/macro_defs1.c @@ -1,10 +1,8 @@ /* { dg-do compile } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv6-m" } } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" } { "" } } */ /* { dg-require-effective-target arm_arch_v6m_ok } */ -/* { dg-options "-march=armv6-m -mthumb" } */ +/* { dg-options "" } */ +/* { dg-add-options arm_arch_v6m } */ #ifdef __ARM_NEON_FP #error __ARM_NEON_FP should not be defined #endif - diff --git a/gcc/testsuite/gcc.target/arm/macro_defs2.c b/gcc/testsuite/gcc.target/arm/macro_defs2.c index 9a960423562..a26fc237611 100644 --- a/gcc/testsuite/gcc.target/arm/macro_defs2.c +++ b/gcc/testsuite/gcc.target/arm/macro_defs2.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-march=armv7ve -mcpu=cortex-a15 -mfpu=neon-vfpv4" } */ -/* { dg-add-options arm_neon } */ /* { dg-require-effective-target arm_neon_ok } */ +/* { dg-options "" } */ +/* { dg-add-options arm_neon } */ #ifndef __ARM_NEON_FP #error __ARM_NEON_FP is not defined but should be @@ -10,5 +10,3 @@ #ifndef __ARM_FP #error __ARM_FP is not defined but should be #endif - - From patchwork Mon Nov 13 14:26:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164513 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1242718vqg; Mon, 13 Nov 2023 06:34:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFttATxwfhA1Xu+6MjgMiP4hkL8qfYT+b0RDUyYjGW3zUgD1yKS+BYj87ukUl3LcU8uu2rP X-Received: by 2002:a0c:bec4:0:b0:66c:fae1:1c72 with SMTP id f4-20020a0cbec4000000b0066cfae11c72mr6261902qvj.42.1699886052354; Mon, 13 Nov 2023 06:34:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699886052; cv=pass; d=google.com; s=arc-20160816; b=hopRpYQdy7GcYhxDxFdIR1JM3TWA+yn/D873Yz21knIVUVlEbb2BeohniJYDuwZI++ AoncLQMISIA7iGYq2O8R6IKaL8a6/aIgz6UzQqciSHm7ZnMBHeLmAiy8A3FG2EetccXE Wqi6cF3rpuXVLe0oKdn34AAT9qaEbFXBdh1Iswt+sj0JbQCemcVriHheKcWeSVxd0WAn QCIDw71jwdeLz1JhmobTyhsMbNJbXVzj2e+t+vjMqGuNT5WwZxkb8voPc57FQfUoO6QS bEbrlhWEGtAFCKpDwks/dwP4SZ/LvUjS7ax3N0t25mPthczIl8Hv8nU46+rGDNM6enfr fpjA== 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=4IFcSsHrIFyVomotSQNItLA4BjitxVfenLJrCRQGkXU=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=GLC5PMyizMzpcp4tfvU8b8/kb1U8GC4E0BHgSVO9WGqtktxzIFronzoMDlsKWVyPNu MzX/vGwzNafEWYMryJSfpTya1NYr7hCQT8lHMjG/1VsefVrDZoPAy/cVBCxtBlkwFgvX LPtEjyguwTFbGioCVRzghKZuNvvJeG8WdySqc3b67mWUlekDh3wHSuBMhfveEMvbDaEH gzSY3KfBgs1mOy/j5j6L29qV1xHKRDXq/nv2jcXouG3B0kMSU+CJ6TSplAtdzicrUNcm dSYd3h9ZVQqqqNHN0nCGOc23Bgedsdtiyd200m7S1dX2kgOoMN3R4z6xlKNvSayRNPSJ //fQ== 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 ek7-20020ad45987000000b0066dac72db9bsi4530723qvb.346.2023.11.13.06.34.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:34:12 -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 C344C3849791 for ; Mon, 13 Nov 2023 14:30:11 +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 97802393824E for ; Mon, 13 Nov 2023 14:27:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 97802393824E 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 97802393824E 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=1699885657; cv=none; b=qi7M6E33xUnA8ST6YAA8OwOxveRWoy8jj48UVOGYpM9WfLZbuVIVLQNxehPmJX3QcvQgff0yI8G4wu28LuLoObad/kZWjC18rvU04rug3++A76qVW1G56D4X0mBilEa9SVtVOqE+MveMNSGUNsapV2yIHUMKE7Zg1w3Ekfdj97k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885657; c=relaxed/simple; bh=Pkh+3kDvP8OpQq9ETz500DTM/cKAbyHIMvY0rBxb99s=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=NPoeEzSmQxvik+wGUtT6NaGNA0ABqcn+dRneZk+HlK1cfPdzODHGxzhcXLbpnwKOPda/KGuwfXi+a5x8pZCSTbS0Ra1PoHoZWlZr3pUxMuww7muuVNlGY4GubVJ/X7/44fY7dt45gif5f44y5aHpszrCqq7glmnVs0dzISOdlr4= 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 E2DD1152B; Mon, 13 Nov 2023 06:28:21 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F3B373F7B4; Mon, 13 Nov 2023 06:27:35 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 18/22] arm: testsuite: improve compatibility of gcc.target/arm/pr19599.c Date: Mon, 13 Nov 2023 14:26:54 +0000 Message-Id: <20231113142658.69039-19-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, 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: 1782459716820510610 X-GMAIL-MSGID: 1782459716820510610 Add +fp to the architecture specification, so that -mfpu=auto works with the hard-float ABI. gcc/testsuite: * gcc.target/arm/pr19599.c: Add +fp to the architecture. --- gcc/testsuite/gcc.target/arm/pr19599.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/pr19599.c b/gcc/testsuite/gcc.target/arm/pr19599.c index a536548442f..d2f15ae4499 100644 --- a/gcc/testsuite/gcc.target/arm/pr19599.c +++ b/gcc/testsuite/gcc.target/arm/pr19599.c @@ -1,6 +1,6 @@ /* { dg-skip-if "need at least armv5te" { *-*-* } { "-march=armv[234]*" "-mthumb" } { "" } } */ /* { dg-skip-if "FDPIC does not support armv5te" { arm*-*-uclinuxfdpiceabi } "*" "" } */ -/* { dg-options "-O2 -march=armv5te -marm" } */ +/* { dg-options "-O2 -march=armv5te+fp -marm" } */ /* { dg-final { scan-assembler "bx" } } */ int (*indirect_func)(); From patchwork Mon Nov 13 14:26:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164508 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1241840vqg; Mon, 13 Nov 2023 06:32:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IECNDxhcWEzcBqumUoAML+VHN01I+mdPiuuP72ibR+TJAODwlEnV1ntxtLY2bgxoEEGNOEl X-Received: by 2002:a05:620a:2493:b0:77b:b34e:624b with SMTP id i19-20020a05620a249300b0077bb34e624bmr9828251qkn.60.1699885969469; Mon, 13 Nov 2023 06:32:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885969; cv=pass; d=google.com; s=arc-20160816; b=fOhfeizIfy5qVKyn7U5pWsqtYb7dpLGaoLj6+sU7Byb97FTDICf5s0DIX3gEPykM0n sxiU/7w8dC4zknmoMLw+g5F8GzAw9cadfRFq9rZ6BZMi0jGSile2Dr999+VHnljniD6V pmnrOJiL9tdJvkwcn1Vd3HUh4jMTkmttfpNfrv0BkbfMkrDhEKPB+iwe5gNduHM1xKun x7y6jSpuwkgDhWgd8SQmOixidiIO47osW7k5ZHQfyg8v/EGkVt6ZlUxAPllft4f784a7 yUEMhV0ja+PQVAvWn3PuJhY2OwXN7CzrHvCAH1whtzimSFMGSQVvXhv6FDkjXwvaW24x AuuQ== 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=9UkTtDoLK42PL+fZ/O39bmtC7lEEm/vf7O51xXAR1sw=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=ykRXTO83L2Du9v8rWuyUH+PSh3JdmUP0+FaDjGy9Kt9MmcbqeUEkeGQlJuBKbx0Bq0 3diwT97WnXLFDDeIQ8sfTri3mdAgXRcAhGPEwsiY6BMDz6Q7ZPQ84NbVMEjReV1SO+8u EKL3SkW/j1oyX+CptuHbMZBYFbCm3T7K49idR7QtvsiduXIHyz/cQUqy9Eo+klzYECvD ApfbyPQZf7aUIg8DcFdBuW3/QcM85qdCi9fYWm43liu/IFQrexLZ7+kKxGahGSQL5Vt7 Z12cdTXqUbNwjWsQgdnJ0HE1SCqkpWYHE/F1DxsXcPZcpcB939rM9NQmvGmA8199/5lv riww== 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 bl19-20020a05620a1a9300b0076cae48eb5dsi4509876qkb.234.2023.11.13.06.32.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:32:49 -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 CA30D3823E59 for ; Mon, 13 Nov 2023 14:29:30 +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 675A13948A5E for ; Mon, 13 Nov 2023 14:27:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 675A13948A5E 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 675A13948A5E 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=1699885658; cv=none; b=oxzWE9kVU/ekHCaj5HWX2kcYm4TltXEB/oj4sPH/PfOnaxUZ/XGTSZovhfDhkcLq/yJa15p/YMfJywkg/VuquOWRk/8nT3Fc7U4KB2KaDwZqiH4yfj3fYgienwVj3/3j9Pw88EXQc3J1n5ODDlQ/hPpUILs4ZUjXTf0O7qo/x4Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885658; c=relaxed/simple; bh=lgppKgULent6gEjhKCw4xdMELHzMoh4JHIIUBzFhm4A=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=vRX3jLiSvMYAAM4CGRZzb6Hyl5PFTk0friooCHRgOPixwN2UDs34ODkdGcTbQuAf1yIxbyMqjezaL6KT2SwcS5pFvCJQyuTqF2RBR1svNZf5CsxrCOIrjggWogRY7i5Xr9bqOBWePXbbMvG09V80Z2I2UXnyKrsRFuHw4mY7H7Q= 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 A1690FEC; Mon, 13 Nov 2023 06:28:22 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B00873F7B4; Mon, 13 Nov 2023 06:27:36 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 19/22] arm: testsuite: improve compatibility of gcc.target/arm/pr59575.c Date: Mon, 13 Nov 2023 14:26:55 +0000 Message-Id: <20231113142658.69039-20-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, 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: 1782459630404824007 X-GMAIL-MSGID: 1782459630404824007 Use dg-require-effective-target/dg-add-options to improve compatibility of this test with various compiler configurations. gcc/testsuite: * gcc.target/arm/pr59575.c: Use dg-require-effective-target and dg-add-options. --- gcc/testsuite/gcc.target/arm/pr59575.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/pr59575.c b/gcc/testsuite/gcc.target/arm/pr59575.c index cc49be3d61f..27d7d40526e 100644 --- a/gcc/testsuite/gcc.target/arm/pr59575.c +++ b/gcc/testsuite/gcc.target/arm/pr59575.c @@ -1,7 +1,9 @@ /* PR target/59575 */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_arch_v7a_ok } */ /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */ -/* { dg-options "-Os -g -march=armv7-a" } */ +/* { dg-options "-Os -g" } */ +/* { dg-add-options arm_arch_v7a } */ void foo (int *); int *bar (int, long long, int); From patchwork Mon Nov 13 14:26:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 164510 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1242002vqg; Mon, 13 Nov 2023 06:33:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8p7hZ3iH0mXpWOjGIRaiPk+zRAc21QqrqaIJ0xGmJ6ds5kuq1cMSho+ZR998bCHFkU8y5 X-Received: by 2002:a0c:ff08:0:b0:672:5946:ffe7 with SMTP id w8-20020a0cff08000000b006725946ffe7mr6283296qvt.30.1699885979485; Mon, 13 Nov 2023 06:32:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699885979; cv=pass; d=google.com; s=arc-20160816; b=FXgPo2LmpAz8wUyDvYnFlcRc9O/s7Z57YZWyZ9fPlSf+pBPcpoGFncI7kWEkj5bIj6 rj+oy4dOFbzMqdaRzXCtAmC0LdpJCrWb9CDdR0IPH6U+2chyOBAVpRfjFNU7dlx9uKsx 4xGcquPugJMoKtp1tVvkjWLZZ905CQ+pKVz+32Adw+F4zK79+XIQvnT0F5LjTGloRH1E 1bnbpwKcyjE4nVPK6+5aWnOgCbuyfBClUJtodQvkQ0MKvmS7aqrbe4h1sBt8M6T2NKup U7M0yarTBxdfWugFjzF6d4xIa9lfZPkvM48LnRLMlkZro4oc59VN7YuHnrK2ZdesvPdN kQNQ== 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=wgWmFacvRX7nlLSAytGXtg+v2NV4Sp3HUUv82LkaSsk=; fh=vcPCoAFD9ELdvNMTpDIWpczE2wb0OD9E1jzZw6wSlzw=; b=d2Wqs4bkkEhm2UN46J2GiIHzGdbLeEGYAeIrPvzPAxfRw/fmn3Nvky7InicZ5Ix+BJ bBWRrvOdKu56hv9J7Dlz5w+xn2hc5Z2uASznc7D4N1glMp6usUTjlhk929w/QLUjOn09 ZkQVeiAmL+WcGzD2UfjNvHatIFNGn0ZSnngj+b1IXhKWOZ/1qeFQnAsxKubXCnFKbw/s lBqcuNnGL+cYH0K8F+Awg1DOi4AaBle62BLhf5ZE9dDHNBjq3meGD5xO7FWUpjSwd8Tr zeyLzF+mFLIVAksvL8fk4FdILqO02IBjbtbVxqb5R8Y6q+d0NfqraKCXXQ92oWLK+Rx9 76cQ== 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 p15-20020a05620a112f00b00775cadf4e5csi4627413qkk.214.2023.11.13.06.32.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 06:32:59 -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 A771B383626B for ; Mon, 13 Nov 2023 14:29:34 +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 4DB673947429 for ; Mon, 13 Nov 2023 14:27:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4DB673947429 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 4DB673947429 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=1699885659; cv=none; b=EqgeJjkDA6bjkBTeyOgs03mQHJ8isAkWWLmR6sE2IRWEhnIs4nqpVxVDibdrKsgn13VjjOxv8cxdno6b8haACkWxwOmq2xq/TifJ9KZwDtpEG3t1BjLsp59gknvLZCBhoJw/slErIw7B4kVbrDon6mT0Lu2KsBXRxhx/LC7qZCA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699885659; c=relaxed/simple; bh=u+ifsj0dIKvodHjXhUZ8DlpDi005Tu59zi41QIA4dKk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=i3JLHrqvV9UhnQ6t4BBB3LB0Pqpmt5cdPAPUh2C1In0jmthFQA356Dk/7mGQSu++yIItgMPxz7q1eCqMqcpxjM720Bc83cR/LE8tBRFLLeUxVehQhO391RP69KGI7nUSrL2cx6gN+YUj0xFuPVePfoQMzzA6GKpgJFYUJQXOSbU= 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 906871007; Mon, 13 Nov 2023 06:28:23 -0800 (PST) Received: from e126323.arm.com (unknown [10.57.41.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 75CE43F7B4; Mon, 13 Nov 2023 06:27:37 -0800 (PST) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [committed 20/22] testsuite: arm: tighten up mode-specific ISA tests Date: Mon, 13 Nov 2023 14:26:56 +0000 Message-Id: <20231113142658.69039-21-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: 1782459640973453259 X-GMAIL-MSGID: 1782459640973453259 Some of the standard Arm architecture tests require the test to use a specific instruction set (arm or thumb). But although the framework was checking that the flag was accepted, it wasn't checking that the flag wasn't somehow being override (eg by run-specific options). We can improve these tests easily by checking whether or not __thumb-_ is defined. gcc/testsuite: * lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok): For instruction-set specific tests, check that __thumb__ is, or isn't defined as appropriate. --- gcc/testsuite/lib/target-supports.exp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 316e34a34be..3d504d26164 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5403,25 +5403,25 @@ proc check_effective_target_arm_fp16_hw { } { foreach { armfunc armflag armdefs } { v4 "-march=armv4 -marm" __ARM_ARCH_4__ v4t "-march=armv4t -mfloat-abi=softfp" __ARM_ARCH_4T__ - v4t_arm "-march=armv4t -marm" __ARM_ARCH_4T__ - v4t_thumb "-march=armv4t -mthumb -mfloat-abi=softfp" __ARM_ARCH_4T__ + v4t_arm "-march=armv4t -marm" "__ARM_ARCH_4T__ && !__thumb__" + v4t_thumb "-march=armv4t -mthumb -mfloat-abi=softfp" "__ARM_ARCH_4T__ && __thumb__" v5t "-march=armv5t -mfloat-abi=softfp" __ARM_ARCH_5T__ - v5t_arm "-march=armv5t -marm" __ARM_ARCH_5T__ - v5t_thumb "-march=armv5t -mthumb -mfloat-abi=softfp" __ARM_ARCH_5T__ + v5t_arm "-march=armv5t -marm" "__ARM_ARCH_5T__ && !__thumb__" + v5t_thumb "-march=armv5t -mthumb -mfloat-abi=softfp" "__ARM_ARCH_5T__ && __thumb__" v5te "-march=armv5te+fp -mfloat-abi=softfp" __ARM_ARCH_5TE__ - v5te_arm "-march=armv5te+fp -marm" __ARM_ARCH_5TE__ - v5te_thumb "-march=armv5te+fp -mthumb -mfloat-abi=softfp" __ARM_ARCH_5TE__ - xscale_arm "-mcpu=xscale -mfloat-abi=soft -marm" __XSCALE__ + v5te_arm "-march=armv5te+fp -marm" "__ARM_ARCH_5TE__ && !__thumb__" + v5te_thumb "-march=armv5te+fp -mthumb -mfloat-abi=softfp" "__ARM_ARCH_5TE__ && __thumb__" + xscale_arm "-mcpu=xscale -mfloat-abi=soft -marm" "__XSCALE__ && !__thumb__" v6 "-march=armv6+fp -mfloat-abi=softfp" __ARM_ARCH_6__ - v6_arm "-march=armv6+fp -marm" __ARM_ARCH_6__ - v6_thumb "-march=armv6+fp -mthumb -mfloat-abi=softfp" __ARM_ARCH_6__ + v6_arm "-march=armv6+fp -marm" "__ARM_ARCH_6__ && !__thumb__" + v6_thumb "-march=armv6+fp -mthumb -mfloat-abi=softfp" "__ARM_ARCH_6__ && __thumb__" v6k "-march=armv6k+fp -mfloat-abi=softfp" __ARM_ARCH_6K__ - v6k_arm "-march=armv6k+fp -marm" __ARM_ARCH_6K__ - v6k_thumb "-march=armv6k+fp -mthumb -mfloat-abi=softfp" __ARM_ARCH_6K__ + v6k_arm "-march=armv6k+fp -marm" "__ARM_ARCH_6K__ && !__thumb__" + v6k_thumb "-march=armv6k+fp -mthumb -mfloat-abi=softfp" "__ARM_ARCH_6K__ && __thumb__" v6t2 "-march=armv6t2+fp" __ARM_ARCH_6T2__ v6z "-march=armv6z+fp -mfloat-abi=softfp" __ARM_ARCH_6Z__ - v6z_arm "-march=armv6z+fp -marm" __ARM_ARCH_6Z__ - v6z_thumb "-march=armv6z+fp -mthumb -mfloat-abi=softfp" __ARM_ARCH_6Z__ + v6z_arm "-march=armv6z+fp -marm" "__ARM_ARCH_6Z__ && !__thumb__" + v6z_thumb "-march=armv6z+fp -mthumb -mfloat-abi=softfp" "__ARM_ARCH_6Z__ && __thumb__" v6m "-march=armv6-m -mthumb -mfloat-abi=soft" __ARM_ARCH_6M__ v7a "-march=armv7-a+fp" __ARM_ARCH_7A__ v7r "-march=armv7-r+fp" __ARM_ARCH_7R__ 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__