Message ID | 5583fe0a-3328-4c3c-89bc-e95cc3559cf4@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 57C023885C37 for <patchwork@sourceware.org>; Wed, 19 Jun 2024 16:19:17 +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 230B93885C1B for <gcc-patches@gcc.gnu.org>; Wed, 19 Jun 2024 16:18:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 230B93885C1B 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 230B93885C1B 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=1718813931; cv=none; b=s0aKl+nhY8SO7hpVccsM7lk2psyq9rDxZMsYIscjmpM5F3KIOF0oBSTsUm/crCmFFW4sgjQ1LwtqhnntxQ+nyqZ+dsAqgFpYW0b+NS3LF9sjp6+X4Y1tizRDO7NKzU31BgEMFSBny4j8gDz3D4JoukMPiZuyIvqA7VTpDuqidUI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718813931; c=relaxed/simple; bh=32E6U/CLOFq+qvZ39RN9I6RYFXFWtDJDET8FrDCFDm0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=XTVrR5ZfF5ZhUhVp8hJ24JTXLGG+1b3nZUFdJSflaYKhFzruvyw/5vP1zO1B1nHohR4vjJZJC9vLuaq7p307cwcqrt01dIraHmRUemmmCQKXNP5fQd6+IZNL5m64ddEf6LV3rnruroqcH3Pbxg9yyhQtmAosWtH3HSQhatpFvOY= 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.18.1.2/8.18.1.2) with ESMTP id 45JCxlDZ012710; Wed, 19 Jun 2024 16:18:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= message-id:date:mime-version:to:from:subject:content-type :content-transfer-encoding; s=pp1; bh=IwsWt4sVyOOz61WBsOtvgENR1c YkARmr47UTlL5RVfs=; b=aQQpBLd/e2pimS6w4DFvcfc/5KNxA6wp12aXayI3hW z2Y0pR2RWuunP6jxlKY9gezmVEy/hFzYjGtOMAFgmXJEV9qdNuwYoHt6fvlUT9Rt v5jGMIOTXfP2SzACBwufZyGsCjjWDOq68AaU12vI8a+CNhuxhQoB2njehGCu6I1v jtcRY6CFrloF8iKwRfA/xNv8hBpfQaIraf6jMRe8iKXvKpXvPDmT8pVWODApwREP cAVLOU4WzttU1rOwf+/mgYMnESuG4jYAKDVG0/YpHDgCvQgSXH28w8kwzQCVDbEw HPHzfNXhOILBev245cwO0gC+qYGUHXRFA1JwLTebW2aQ== Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yuyt98mqf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 16:18:45 +0000 (GMT) Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45JFEHw0019519; Wed, 19 Jun 2024 16:18:44 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3ysnp1eeun-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 16:18:44 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45JGIfIx28050166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2024 16:18:43 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B280E5806C; Wed, 19 Jun 2024 16:18:41 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0522F5806A; Wed, 19 Jun 2024 16:18:41 +0000 (GMT) Received: from [9.67.109.151] (unknown [9.67.109.151]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Wed, 19 Jun 2024 16:18:40 +0000 (GMT) Message-ID: <5583fe0a-3328-4c3c-89bc-e95cc3559cf4@linux.ibm.com> Date: Wed, 19 Jun 2024 09:18:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: gcc-patches@gcc.gnu.org, "Kewen.Lin" <linkw@linux.ibm.com>, Segher Boessenkool <segher@kernel.crashing.org>, "bergner@linux.ibm.com" <bergner@linux.ibm.com>, Carl Love <cel@linux.ibm.com> From: Carl Love <cel@linux.ibm.com> Subject: [PATCH] rs6000, altivec-1-runnable.c update the require-effective-target Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: vhl4CxRBqaxh65vV0MdlqdR5QKe135GL X-Proofpoint-GUID: vhl4CxRBqaxh65vV0MdlqdR5QKe135GL 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-06-19_02,2024-06-19_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 suspectscore=0 mlxlogscore=829 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406190119 X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS, KAM_SHORT, 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+patchwork=sourceware.org@gcc.gnu.org |
Series |
rs6000, altivec-1-runnable.c update the require-effective-target
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gcc_build--master-arm | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
Carl Love
June 19, 2024, 4:18 p.m. UTC
GCC maintainers: The dg options for this test should be the same as for altivec-2-runnable.c. This patch updates the dg options to match the settings in altivec-2-runnable.c. The patch has been tested on Power 10 with no regression failures. Please let me know if this patch is acceptable for mainline. Thanks. Carl ----------------------------------------------------------------------------------From 289e15d215161ad45ae1aae7a5dedd2374737ec4 rs6000, altivec-1-runnable.c update the require-effective-target The test requires a minimum of Power8 vector HW and a compile level of -O2. gcc/testsuite/ChangeLog:gcc/testsuite/ChangeLog: * gcc.target/powerpc/altivec-1-runnable.c: Change the require-effective-target for the test. --- gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Comments
Hi Carl, on 2024/6/20 00:18, Carl Love wrote: > GCC maintainers: > > The dg options for this test should be the same as for altivec-2-runnable.c. This patch updates the dg options to match > the settings in altivec-2-runnable.c. > > The patch has been tested on Power 10 with no regression failures. > > Please let me know if this patch is acceptable for mainline. Thanks. > > Carl > > ----------------------------------------------------------------------------------From 289e15d215161ad45ae1aae7a5dedd2374737ec4 rs6000, altivec-1-runnable.c update the require-effective-target > > The test requires a minimum of Power8 vector HW and a compile level > of -O2. This is not true, vec_unpackh and vec_unpackl doesn't require power8, vupk[hl]s[hb]/vupk[hl]px are all ISA 2.03. > > gcc/testsuite/ChangeLog:gcc/testsuite/ChangeLog: > * gcc.target/powerpc/altivec-1-runnable.c: Change the > require-effective-target for the test. > --- > gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c b/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c > index da8ebbc30ba..c113089c13a 100644 > --- a/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c > +++ b/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c > @@ -1,6 +1,7 @@ > -/* { dg-do compile { target powerpc*-*-* } } */ > -/* { dg-require-effective-target powerpc_altivec_ok } */ > -/* { dg-options "-maltivec" } */ > +/* { dg-do run { target vsx_hw } } */ So this line should check for vmx_hw. > +/* { dg-do compile { target { ! vmx_hw } } } */ > +/* { dg-options "-O2 -mdejagnu-cpu=power8" } */ With more thinking, I think it's better to use "-O2 -maltivec" to be consistent with the others. As mentioned in the other thread, powerpc_altivec effective target check should guarantee the altivec feature support, if any default cpu type or user specified option disable altivec, this test case will not be tested. If we specify one cpu type specially here, it may cause confusion why it's different from the other existing ones. So let's go without no specified cpu type. Besides, similar to the request for altivec-1-runnable.c, could you also rename this to altivec-38.c? BR, Kewen > +/* { dg-require-effective-target powerpc_altivec } */ > > #include <altivec.h> >
Kewen: On 6/21/24 03:37, Kewen.Lin wrote: > Hi Carl, > > on 2024/6/20 00:18, Carl Love wrote: >> GCC maintainers: >> >> The dg options for this test should be the same as for altivec-2-runnable.c. This patch updates the dg options to match >> the settings in altivec-2-runnable.c. >> >> The patch has been tested on Power 10 with no regression failures. >> >> Please let me know if this patch is acceptable for mainline. Thanks. >> >> Carl >> >> ----------------------------------------------------------------------------------From 289e15d215161ad45ae1aae7a5dedd2374737ec4 rs6000, altivec-1-runnable.c update the require-effective-target >> >> The test requires a minimum of Power8 vector HW and a compile level >> of -O2. > > This is not true, vec_unpackh and vec_unpackl doesn't require power8, > vupk[hl]s[hb]/vupk[hl]px are all ISA 2.03. > >> >> gcc/testsuite/ChangeLog:gcc/testsuite/ChangeLog: >> * gcc.target/powerpc/altivec-1-runnable.c: Change the >> require-effective-target for the test. >> --- >> gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c | 7 ++++--- >> 1 file changed, 4 insertions(+), 3 deletions(-) >> >> diff --git a/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c b/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c >> index da8ebbc30ba..c113089c13a 100644 >> --- a/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c >> +++ b/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c >> @@ -1,6 +1,7 @@ >> -/* { dg-do compile { target powerpc*-*-* } } */ >> -/* { dg-require-effective-target powerpc_altivec_ok } */ >> -/* { dg-options "-maltivec" } */ >> +/* { dg-do run { target vsx_hw } } */ > > So this line should check for vmx_hw. OK, fingers are used to typing vsx.... Fixed. > >> +/* { dg-do compile { target { ! vmx_hw } } } */ >> +/* { dg-options "-O2 -mdejagnu-cpu=power8" } */ > > With more thinking, I think it's better to use > "-O2 -maltivec" to be consistent with the others. OK, changed it back. We now have: /* { dg-do run { target vmx_hw } } */ /* { dg-do compile { target { ! vmx_hw } } } */ /* { dg-options "-O2 -maltivec" } */ /* { dg-require-effective-target powerpc_altivec } */ The regression test runs fine with the above. Two passes, no failures. > > As mentioned in the other thread, powerpc_altivec > effective target check should guarantee the altivec > feature support, if any default cpu type or user > specified option disable altivec, this test case > will not be tested. If we specify one cpu type > specially here, it may cause confusion why it's > different from the other existing ones. So let's > go without no specified cpu type. > > Besides, similar to the request for altivec-1-runnable.c, > could you also rename this to altivec-38.c? OK, will change the names for the two test cases at the same time in a separate patch. Carl
diff --git a/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c b/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c index da8ebbc30ba..c113089c13a 100644 --- a/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/altivec-1-runnable.c @@ -1,6 +1,7 @@ -/* { dg-do compile { target powerpc*-*-* } } */ -/* { dg-require-effective-target powerpc_altivec_ok } */ -/* { dg-options "-maltivec" } */ +/* { dg-do run { target vsx_hw } } */ +/* { dg-do compile { target { ! vmx_hw } } } */ +/* { dg-options "-O2 -mdejagnu-cpu=power8" } */ +/* { dg-require-effective-target powerpc_altivec } */ #include <altivec.h>