From patchwork Tue Jan 16 02:42:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 1886908 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=J+CVbfrF; 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 4TDYGB4rBFz1yPg for ; Tue, 16 Jan 2024 13:42:57 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 182443858CDB for ; Tue, 16 Jan 2024 02:42:55 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 64E5B3858D1E for ; Tue, 16 Jan 2024 02:42:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64E5B3858D1E 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 64E5B3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705372959; cv=none; b=eKsW7UWf+jU1LAmmaVO3JHu5KgtuAxOyBlg6wOAbO8sAsu0emq0fkl8Q+JHYcsFOQMXYNxEVmRRE2mTwWMbLOCR9aSb8pX1u5CGFhlGJimIQVDt7x0wl8oyECJeEWTkmIHSOqs+lFQG+yJB6mbXc2RoxxGP375NQJoFbyR0Jn3I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705372959; c=relaxed/simple; bh=Zkc8jXi3lX2MQwnu9UvKC/ag9nJOnuRescqEd4PkQeo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=nHzDNamfnOXun6s7cipPgCCTQB1LdShITqjWgl3zV45sA7NnLEKUYsA3E+emv4fuiLTjTG1Iy01Ej89683Y4y9GdNq7/RR30DNOhpJ00CinGnWgJKzhmo3+6byUFHHiFaPwoENNR7Sky1p7kDs/4fEldzH2Nqp3aHe6g76pudPs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40G2ND1A024274; Tue, 16 Jan 2024 02:42:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : to : cc : from : subject : content-type : content-transfer-encoding; s=pp1; bh=oHFE8ElEJg4k3//PA+pu4L6Knr1IYSQ2S9Z+BCpZTLo=; b=J+CVbfrFc3Vah02DGZrnn0LCEr7j6GY6WgdFM5k9tIK9sArcHCcl51oX5f5R9JRwiPHF XjZZ1G5dFavCp5NNLyT2OVGeOokOlHdTMm8kSKzyd4jkdkVMHYKFvFNSVRM1Sk6WIrsv fsvjPm89eeTNuss28oCwVKgeRVVE7xZSLn/I4VrpG3ZEJjTIcVuwlKS1B4nm+HM4Kg1K Z/Yhn/XL3HQmieWjGFyRy3rXLMqWCbrZqW4sPf0GKVRMykKrr3yVbMgc3RuL3JIVltSJ meqq7xmLG9zoRi8ngr23ITg/qOgAjtpe8Wz2Dc3bef8wCrk5rDhh3sOxls6ltNmfWcNY cw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vnc91drct-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jan 2024 02:42:36 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 40G2ga9O012700; Tue, 16 Jan 2024 02:42:36 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vnc91drcm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jan 2024 02:42:35 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 40G16ZCS008605; Tue, 16 Jan 2024 02:42:35 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3vm6bkbvxm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jan 2024 02:42:35 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 40G2gXuc59507114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jan 2024 02:42:33 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36D892004B; Tue, 16 Jan 2024 02:42:33 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 301CD20043; Tue, 16 Jan 2024 02:42:31 +0000 (GMT) Received: from [9.197.235.127] (unknown [9.197.235.127]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 16 Jan 2024 02:42:30 +0000 (GMT) Message-ID: <53887523-ea6c-3a7e-6bb6-59268b9d3a4f@linux.ibm.com> Date: Tue, 16 Jan 2024 10:42:29 +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 Cc: Segher Boessenkool , David Edelsohn , Peter Bergner , Richard Biener From: "Kewen.Lin" Subject: [PATCH] testsuite: Fix vect_long_mult on Power [PR109705] X-TM-AS-GCONF: 00 X-Proofpoint-GUID: UZoYci0iBOutTUZkBLQyRXZCThMzle0r X-Proofpoint-ORIG-GUID: oKWIPBq9Km1ozVVGBhRc1Nqi2Q7RCb6q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-15_17,2024-01-15_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 impostorscore=0 phishscore=0 malwarescore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401160020 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi, As pointed out by the discussion in PR109705, the current vect_long_mult effective target check on Power is broken. This patch is to fix it accordingly. With additional change by adding a guard vect_long_mult in gcc.dg/vect/pr25413a.c , it's tested well on Power{8,9} LE & BE (also on Power10 LE as before). I'm going to push this soon. BR, Kewen ----- PR testsuite/109705 gcc/testsuite/ChangeLog: * lib/target-supports.exp (check_effective_target_vect_long_mult): Fix powerpc*-*-* checks. --- gcc/testsuite/lib/target-supports.exp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.39.1 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 81ae92a0266..fac32fb3d0e 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -9073,9 +9073,9 @@ proc check_effective_target_vect_int_mult { } { proc check_effective_target_vect_long_mult { } { if { [istarget i?86-*-*] || [istarget x86_64-*-*] - || (([istarget powerpc*-*-*] - && ![istarget powerpc-*-linux*paired*]) - && [check_effective_target_ilp32]) + || ([istarget powerpc*-*-*] + && [check_effective_target_powerpc_vsx_ok] + && [check_effective_target_has_arch_pwr10]) || [is-effective-target arm_neon] || ([istarget sparc*-*-*] && [check_effective_target_ilp32]) || [istarget aarch64*-*-*]