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: 102233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp670269vqr; Thu, 1 Jun 2023 16:12:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5JxuABQMnJJobT+XqKpU7ZHGKiS3+wX11+DN+NoA4IGRIT0mL9AA3XoRmkOU4Qt9Q+hdMg X-Received: by 2002:a17:907:3f8f:b0:974:b15:fce5 with SMTP id hr15-20020a1709073f8f00b009740b15fce5mr10700213ejc.38.1685661138048; Thu, 01 Jun 2023 16:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685661138; cv=none; d=google.com; s=arc-20160816; b=SXUO+Un4CL1kHltyq/BOkNX2Y94da7H+Rg4xHHcOW7TkD5FOOrxTmHgeBVspCmInxS 3Ls8KapHN8HWFUwg47+r3d+H6XynVhHJXHFIb7wcV+up0g/oqineNKRp8XnmeDngA6ly tOYS73UNU2jBBGp67Oz0xedCquIYASGIj364KwzMYA8PthzIH+O6hOL2Rj52dXPg10wt ZQdMlw9PG7f+U+CaBsXSWjqmgh2TESQ22GnbtQsigptDzBcxrcIMQluSSsv6pvKMqp+M kPm7hj+uuTO5J9K7+ghmCrtKGsdJlQceWn9c3aFqXhBpU7g51OL2rRpTpLXK3GXJCwSV wnag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:date:cc:to:subject :message-id:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=7HbCOxB0pUeZ9Kl4zt7WGtb6eWqwrlMaPFvdt1JucNc=; b=k0Uf+5bMSK43slwfAEZOK+LvsLAgh23kzSN/E9xAe+b3P8/4wViN4eblEU17fsCWCt Engw5F7q4n90hn2EFERmOwXp2QB6xSgvT4r6Vvq8kMuKRTkA6WgN1pFbsESvvI223oCb uY3VJ6w6paP//FOqX2B0FQhj+Yq2zGNPxxOP8gBy+PnV0wAxLXWHofc50JnkuX1bhhq1 10FRXNPIN+reMO6wV2nzeW6wte5NnKhkMUvqK8Yt6Nhqc6lT38Pj7yO6PBr3cnsnHA6K N8V6D+9uSnFSilu1TcBJo5lvPd+USGzv3NdIQU8YygbyXyzCz9AvFl6xf/2dcg3cvsY0 tP3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=SS6m4+L7; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id wl6-20020a170907310600b0094e5ba86388si12224564ejb.831.2023.06.01.16.12.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 16:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=SS6m4+L7; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E77393858414 for ; Thu, 1 Jun 2023 23:12:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E77393858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685661136; bh=7HbCOxB0pUeZ9Kl4zt7WGtb6eWqwrlMaPFvdt1JucNc=; h=Subject:To:Cc:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=SS6m4+L7ftig784xRoDM2jDyrMtVK5acRCy50MbLbFctISpFpDogJH9RX9XZ3spL2 i7Wswo2q3BJPH71i+CNF6+EB4leaT4YhonBuwAheMuDC9GeIOVrvJeKzYkTFKMp0ew s8otTqs8gHVxHimaFH4iSe8YTMuTxXjNVpjR4+ew= 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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767543813374074345?= X-GMAIL-MSGID: =?utf-8?q?1767543813374074345?= 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 } } */