Message ID | 53887523-ea6c-3a7e-6bb6-59268b9d3a4f@linux.ibm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp14013dye; Mon, 15 Jan 2024 18:43:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrsVl+MmJSda4FQwyc0f6mTBN0VlwwYfpuq1GqCWZ3dSY6wKcph7j07JsZMj9KUPeVn8+d X-Received: by 2002:ad4:5d48:0:b0:681:6883:ef91 with SMTP id jk8-20020ad45d48000000b006816883ef91mr1408223qvb.20.1705372999318; Mon, 15 Jan 2024 18:43:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705372999; cv=pass; d=google.com; s=arc-20160816; b=meY1z2hpXHNuM4yA7899049hhnN1QWdNxqUIgqxdpE9Oa221Lnaiym7fCPvhSJHONw 8AbZSOQKq4eEjjRNsTjuYCW4wF31/ZshZiR2RGyw9/62cdSyv4W8jB/BCeOTeuPJyYAm wBgCUJl91jV+5BKzT7gGC6nnEFn1YCQrgfbpyEHsCog3gy+ssoYpumlimpxWzYO2urh8 9VgLPqLcopAsVBgFx+HdWTAdnWZMo39DiBRKrFfTOLBni//GNO0xOHzMg5bQnQ4Oqu3K yGdv/lw4Y1Vs2iwNh50sCxkjxprcahNkJNQ50kdV1Vt5UubxvCUZwnljm7/QkhaJjf/c foLA== 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 :subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=oHFE8ElEJg4k3//PA+pu4L6Knr1IYSQ2S9Z+BCpZTLo=; fh=cLSimHVernMTntvBdVhMCHatNaZjKLex+pvqBKOfojA=; b=OhY84B3aAEiUVfEvnGo3KeH8ry+nncwAMtcKDkpAbRxgOUVO/MnHFnt7WRqp+NkW0d 3r7qZZ3NzJrpALHaYfBt98VUdsXO2siA1ml8uBJf7+VM2bCI8xBl+QlQieXXxgiWledm PHIvd3Tgvsy+66QTjntsKIMeCsGVX9nGpE8bBJXHEuPS9ixM8//Ph5SHYg6xvyc5gvWi fNpLx3yAjcAUNLOBqv5tYZfbFnKnH/O4Yu60KnhF++0pCZ2QS2h0gUm+AOFqW1t0Zb4A TeLg+52Pl3Ol93n49cQpxajqEoitcgAxx1KD22lek2rpUFHmAojHvj9i5KfixTe5ha9y Xoyg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=J+CVbfrF; 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=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id z16-20020a0cf010000000b0067fc6e06530si9025173qvk.188.2024.01.15.18.43.19 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 18:43:19 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=J+CVbfrF; 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=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 095413858CDB for <ouuuleilei@gmail.com>; Tue, 16 Jan 2024 02:43:19 +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 <gcc-patches@gcc.gnu.org>; 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 <gcc-patches@gcc.gnu.org> Cc: Segher Boessenkool <segher@kernel.crashing.org>, David Edelsohn <dje.gcc@gmail.com>, Peter Bergner <bergner@linux.ibm.com>, Richard Biener <richard.guenther@gmail.com> From: "Kewen.Lin" <linkw@linux.ibm.com> Subject: [PATCH] testsuite: Fix vect_long_mult on Power [PR109705] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788213198085560250 X-GMAIL-MSGID: 1788213198085560250 |
Series |
testsuite: Fix vect_long_mult on Power [PR109705]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Kewen.Lin
Jan. 16, 2024, 2:42 a.m. UTC
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
Comments
On Mon, Jan 15, 2024 at 6:43 PM Kewen.Lin <linkw@linux.ibm.com> wrote: > > 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 see this is still broken for 32bit PowerPC where vect_long_mult should return true still since long there is 32bit and there is a 32bit vector multiply. Can someone test (and apply if approved) the attached patch to see if it fixes pr25413a.c for powerpc*-*-* for 32bit? Thanks, Andrew Pinski > > 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(-) > > 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*-*-*] > -- > 2.39.1 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 9fc5aae166d..52a2aec9982 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -9086,8 +9086,9 @@ proc check_effective_target_vect_int_mult { } { proc check_effective_target_vect_long_mult { } { if { [istarget i?86-*-*] || [istarget x86_64-*-*] || ([istarget powerpc*-*-*] - && [check_effective_target_powerpc_vsx_ok] - && [check_effective_target_has_arch_pwr10]) + && ([check_effective_target_ilp32] + || ([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*-*-*]
on 2024/1/27 06:42, Andrew Pinski wrote: > On Mon, Jan 15, 2024 at 6:43 PM Kewen.Lin <linkw@linux.ibm.com> wrote: >> >> 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 see this is still broken for 32bit PowerPC where vect_long_mult > should return true still since long there is 32bit and there is a > 32bit vector multiply. > Can someone test (and apply if approved) the attached patch to see if > it fixes pr25413a.c for powerpc*-*-* for 32bit? Thanks for fixing, it works perfectly as tested. I just pushed it as r14-8485 (also updating with a tab and commit log). BR, Kewen > > Thanks, > Andrew Pinski > >> >> 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(-) >> >> 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*-*-*] >> -- >> 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*-*-*]