From patchwork Fri Aug 9 09:50:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 1970881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=Dh0E2q3b; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WgK1H217sz1ybT for ; Fri, 9 Aug 2024 19:51:15 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 20533385828E for ; Fri, 9 Aug 2024 09:51:13 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 017563858C41 for ; Fri, 9 Aug 2024 09:50:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 017563858C41 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 017563858C41 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723197049; cv=none; b=FPxBC6WHjLMfJZ7QnKKENh2JDBXGWeaouErwSuSsiQGx/aMSWX1r2dLazv1zIpPBLg/1JsnyXpnWuMoVLHkaFm+ma79BzDaO7ml+VeN/C+z1gDvnvfIvIDOsoel1pSaKEpyVJDJX7IUsyJEMqRTNHfnw39zTbj8pfDcAh0VJYFA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723197049; c=relaxed/simple; bh=Bp1vZGG0WjcC1mSvop8wHNMVlNtmpTPiFf6AwNwR04c=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=NM0Dfn2HYXhxT+w35WIFRV7IhCIGz4yRlvRVbWE2f/jEdkgq60gfirxhS9XdD32fy6iT3YvqEzra3fGT8hK7lzmgw75MHNHhUz7Vsdc8O714r/XE/G0k593rIuJok08/n44vV7ZmuPg8DpR7n3DEl5Eda7IZTdsMxwoz31cv8ug= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 478LvRFb016264; Fri, 9 Aug 2024 09:50:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= message-id:date:mime-version:to:from:subject:cc:content-type :content-transfer-encoding; s=pp1; bh=HWDWWU9Lrn00j2XaNb4jJYmS1b dxlxSirDzsXDBt2LE=; b=Dh0E2q3bk1OEH79c55O+ctNX49izivJeNICzSUJHby GudsyL9KuaLBLL51PPSMuQ40OMZv1wxg3+TijJCDBT4pCzmGbzYEV8coq7pIz/JW xweDVe7dHzuIXylpfD1Hq2z1inHqwKrA0RtqOQXfx3KCh8MC1qMj1298tYKYbWHG L+KTTtPTs2dT/dr0Tsdro9sTPwPa+KCEddYqF4Pmz8F7rY/nvErwMukoC8G2BChn hNk9odvSoTncWVfh2h1RSPYosS6wG9jfYWt13p+1fj9f02gNFf6/Dr8jOnKZBLJg lbLVM7qhvSmwg1w9i+e9mgzL0N2sAFeh9FqXYWduRoqg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 40vwkbjk3x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Aug 2024 09:50:44 +0000 (GMT) Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 4799oiRJ028187; Fri, 9 Aug 2024 09:50:44 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 40vwkbjk3q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Aug 2024 09:50:44 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4798riKH030631; Fri, 9 Aug 2024 09:50:43 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 40t1k3jj30-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Aug 2024 09:50:43 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4799odxY30736642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Aug 2024 09:50:41 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A80EC20043; Fri, 9 Aug 2024 09:50:39 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0A3502004F; Fri, 9 Aug 2024 09:50:38 +0000 (GMT) Received: from [9.197.239.15] (unknown [9.197.239.15]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 9 Aug 2024 09:50:37 +0000 (GMT) Message-ID: Date: Fri, 9 Aug 2024 17:50:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: GCC Patches From: "Kewen.Lin" Subject: [PATCH] testsuite, rs6000: Remove all powerpc-*paired* uses Cc: Segher Boessenkool , David Edelsohn , Peter Bergner X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Zy__NrGVRLe1G3h5KVxFHw-OOF85ZLlq X-Proofpoint-ORIG-GUID: 8Yk-eO1c-v1BcSgSTSlv7SUH5lndoawm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-09_06,2024-08-07_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 adultscore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408090070 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TVD_SUBJ_WIPE_DEBT, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Hi, Similar to r15-710-g458b23bc8b3e2b which removed all uses of powerpc-*-linux*paired*, this patch is to remove the remaining powerpc-*paired* uses which I missed to catch with "*linux*" in search keyword. Bootstrapped and regtested on powerpc64-linux-gnu P8/P9 and powerpc64le-linux-gnu P9 and P10. I'm going to push this next week if no objections. BR, Kewen ----- gcc/testsuite/ChangeLog: * lib/target-supports.exp (check_vect_support_and_set_flags): Remove the if arm checking powerpc-*paired*. (check_750cl_hw_available): Remove. (check_effective_target_vect_unpack): Remove the check on powerpc-*paired*. --- gcc/testsuite/lib/target-supports.exp | 35 ++------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) -- 2.43.5 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 2101e9c9c83..747c5af8d0d 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2825,30 +2825,6 @@ proc check_ppc_cpu_supports_hw_available { } { }] } -# Return 1 if the target supports executing 750CL paired-single instructions, 0 -# otherwise. Cache the result. - -proc check_750cl_hw_available { } { - return [check_cached_effective_target 750cl_hw_available { - # If this is not the right target then we can skip the test. - if { ![istarget powerpc-*paired*] } { - expr 0 - } else { - check_runtime_nocache 750cl_hw_available { - int main() - { - #ifdef __MACH__ - asm volatile ("ps_mul v0,v0,v0"); - #else - asm volatile ("ps_mul 0,0,0"); - #endif - return 0; - } - } "-mpaired" - } - }] -} - # Return 1 if the target supports executing power8 vector instructions, 0 # otherwise. Cache the result. @@ -8306,7 +8282,7 @@ proc check_effective_target_vect_pack_trunc { } { proc check_effective_target_vect_unpack { } { return [check_cached_effective_target_indexed vect_unpack { - expr { ([istarget powerpc*-*-*] && ![istarget powerpc-*paired*]) + expr { [istarget powerpc*-*-*] || [istarget i?86-*-*] || [istarget x86_64-*-*] || [istarget ia64-*-*] || [istarget aarch64*-*-*] @@ -11679,14 +11655,7 @@ proc check_vect_support_and_set_flags { } { global dg-do-what-default global EFFECTIVE_TARGETS - if [istarget powerpc-*paired*] { - lappend DEFAULT_VECTCFLAGS "-mpaired" - if [check_750cl_hw_available] { - set dg-do-what-default run - } else { - set dg-do-what-default compile - } - } elseif [istarget powerpc*-*-*] { + if [istarget powerpc*-*-*] { # Skip targets not supporting -maltivec. if ![is-effective-target powerpc_altivec_ok] { return 0