From patchwork Thu Jun 1 23:11:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Love X-Patchwork-Id: 70482 Return-Path: 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 4E67C3857028 for ; Thu, 1 Jun 2023 23:12:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E67C3857028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685661121; bh=7HbCOxB0pUeZ9Kl4zt7WGtb6eWqwrlMaPFvdt1JucNc=; h=Subject:To:Cc:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=NepAJzNNmeq9Bn1hzAOICQv4LK4AURG3xiTrzEO7CQrea6Oix5iFN5dn055qeMqZY 99ls21j0o8fKg33yCWsNW3JJwnAhrHgF2yt8RIMjcTrcdjL45zGqcwzKK2mNr9nm/I TrkUDu8/ETrxtUXxTmNl7cLxcPWwBTIQ7HTjFv60= 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 953433858C50 for ; Thu, 1 Jun 2023 23:11:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 953433858C50 Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 351MeRl3007880; Thu, 1 Jun 2023 23:11:29 GMT Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qy3kwhecf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 23:11:29 +0000 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 351MRD4h008113; Thu, 1 Jun 2023 23:11:28 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([9.208.129.117]) by ppma02wdc.us.ibm.com (PPS) with ESMTPS id 3qu9g8maav-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 23:11:28 +0000 Received: from smtpav04.dal12v.mail.ibm.com (smtpav04.dal12v.mail.ibm.com [10.241.53.103]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 351NBQBC5243634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 1 Jun 2023 23:11:26 GMT Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F3C485805E; Thu, 1 Jun 2023 23:11:25 +0000 (GMT) Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 850A058056; Thu, 1 Jun 2023 23:11:25 +0000 (GMT) Received: from li-e362e14c-2378-11b2-a85c-87d605f3c641.ibm.com (unknown [9.61.7.186]) by smtpav04.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 1 Jun 2023 23:11:25 +0000 (GMT) Message-ID: <0e14ae076c1bc2e9b1d749f1111a44646ef50cca.camel@us.ibm.com> Subject: rs6000: Fix expected counts powerpc/p9-vec-length-full To: gcc-patches@gcc.gnu.org, Segher Boessenkool , Peter Bergner , "Kewen.Lin" Cc: cel@us.ibm.com Date: Thu, 01 Jun 2023 16:11:25 -0700 X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: ukAyFqY9cnway6AlZgAVRQrucD0f-TqK X-Proofpoint-ORIG-GUID: ukAyFqY9cnway6AlZgAVRQrucD0f-TqK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-01_08,2023-05-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxscore=0 bulkscore=0 impostorscore=0 malwarescore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 priorityscore=1501 spamscore=0 mlxlogscore=941 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306010198 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Carl Love via Gcc-patches From: Carl Love Reply-To: Carl Love Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" GCC maintainers: The following patch updates the expected instruction counts in four tests. The counts in all of the tests changed with commit f574e2dfae79055f16d0c63cc12df24815d8ead6. The updated counts have been verified on both Power 9 and Power 10. Please let me know if this patch is acceptable for mainline. Thanks. Carl -------------------- rs6000: Fix expected counts powerpc/p9-vec-length-full tests The counts for instructions lxvl and stxvl in tests: p9-vec-length-full-1.c p9-vec-length-full-2.c p9-vec-length-full-6.c p9-vec-length-full-7.c changed with commit: commit f574e2dfae79055f16d0c63cc12df24815d8ead6 Author: Ju-Zhe Zhong Date: Thu May 25 22:42:35 2023 +0800 VECT: Add decrement IV iteration loop control by variable amount support This patch is supporting decrement IV by following the flow designed by Richard: ... The expected counts for lxvl changed from 20 to 40 and the counts for stxvl changed from 10 to 20 in the first three tests. The number of stxvl instructions changed from 12 to 20 in p9-vec-length-full-7.c. This patch updates the number of expected instructions in the four tests. The counts have been verified on Power 9 and Power 10. --- gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-1.c | 4 ++-- gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-2.c | 4 ++-- gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c | 4 ++-- gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-1.c b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-1.c index f01f1c54fa5..5e4f34421d3 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-1.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-1.c @@ -12,5 +12,5 @@ /* { dg-final { scan-assembler-not {\mstxv\M} } } */ /* { dg-final { scan-assembler-not {\mlxvx\M} } } */ /* { dg-final { scan-assembler-not {\mstxvx\M} } } */ -/* { dg-final { scan-assembler-times {\mlxvl\M} 20 } } */ -/* { dg-final { scan-assembler-times {\mstxvl\M} 10 } } */ +/* { dg-final { scan-assembler-times {\mlxvl\M} 40 } } */ +/* { dg-final { scan-assembler-times {\mstxvl\M} 20 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-2.c b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-2.c index f546e97fa7d..c7d927382c3 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-2.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-2.c @@ -12,5 +12,5 @@ /* { dg-final { scan-assembler-not {\mstxv\M} } } */ /* { dg-final { scan-assembler-not {\mlxvx\M} } } */ /* { dg-final { scan-assembler-not {\mstxvx\M} } } */ -/* { dg-final { scan-assembler-times {\mlxvl\M} 20 } } */ -/* { dg-final { scan-assembler-times {\mstxvl\M} 10 } } */ +/* { dg-final { scan-assembler-times {\mlxvl\M} 40 } } */ +/* { dg-final { scan-assembler-times {\mstxvl\M} 20 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c index 65ddf2b098a..f3be3842c62 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-6.c @@ -11,5 +11,5 @@ /* It can use normal vector load for constant vector load. */ /* { dg-final { scan-assembler-times {\mstxvx?\M} 6 } } */ /* 64bit/32bit pairs won't use partial vectors. */ -/* { dg-final { scan-assembler-times {\mlxvl\M} 10 } } */ -/* { dg-final { scan-assembler-times {\mstxvl\M} 10 } } */ +/* { dg-final { scan-assembler-times {\mlxvl\M} 20 } } */ +/* { dg-final { scan-assembler-times {\mstxvl\M} 20 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c index e0e51d9a972..da086f1826a 100644 --- a/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c +++ b/gcc/testsuite/gcc.target/powerpc/p9-vec-length-full-7.c @@ -12,4 +12,4 @@ /* Each type has one stxvl excepting for int8 and uint8, that have two due to rtl pass bbro duplicating the block which has one stxvl. */ -/* { dg-final { scan-assembler-times {\mstxvl\M} 12 } } */ +/* { dg-final { scan-assembler-times {\mstxvl\M} 20 } } */