From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 4730E3858D28; Mon, 20 Feb 2023 09:46:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4730E3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTwfA-0004IK-M4; Sun, 19 Feb 2023 22:16:26 -0500 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31K2Bmm8002472; Mon, 20 Feb 2023 03:16:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : references : date : in-reply-to : message-id : content-type : mime-version; s=pp1; bh=fvxn0Jxjkyn0DLpWFVagrjUW52iDdzlCDuDiDJhf3jU=; b=Q/K+h0ElIEVmPwnwo5vG8Ai6SbTdtxhQjrsp9eFTpHtoKVpX42JsK2ooTGlrEFnf6spK 05CIoVQoPn4pfI5oIdKMdUrvCCfCVraaNAlgGiEo3i5eibXhs1ZwCVbSVcQQZP9RD8j8 tLvxRE3l35ZThBTdMvD+60qkpSfzVnO3IPTc/XzPdYTAkxWQMosHIrpgQcjn3kQElIYW odR7soMO15XPkkieqMYPzq1Y+LB8EMVtj3bmEuY6ID76MV3kMsp83G8Ltv3MBkSzRNKA neE08100ge+N03JhcAKltGjpaEllfJkAp6AcP1KE6LddtmG8YGkJcZLtlOq6b5A/0PlZ bQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3nuyv2s0jv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Feb 2023 03:16:11 +0000 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 31K30Z8o023609; Mon, 20 Feb 2023 03:16:11 GMT Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3nuyv2s0jh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Feb 2023 03:16:11 +0000 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 31K2VpwL003440; Mon, 20 Feb 2023 03:16:09 GMT Received: from smtprelay03.dal12v.mail.ibm.com ([9.208.130.98]) by ppma01dal.us.ibm.com (PPS) with ESMTPS id 3ntpa75e3e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Feb 2023 03:16:09 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay03.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 31K3G8EH11928088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Feb 2023 03:16:08 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 73FC258496; Mon, 20 Feb 2023 03:16:08 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5544658498; Mon, 20 Feb 2023 03:16:08 +0000 (GMT) Received: from ltcden2-lp1.aus.stglabs.ibm.com (unknown [9.3.90.43]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTPS; Mon, 20 Feb 2023 03:16:08 +0000 (GMT) From: Jiufu Guo To: gcc-patches@gcc.gnu.org Cc: segher@kernel.crashing.org, dje.gcc@gmail.com, linkw@gcc.gnu.org Subject: Re: [PATCH 0/4] rs6000: build constant via li/lis;rldicX References: <20230203102208.53215-1-guojiufu@linux.ibm.com> Date: Mon, 20 Feb 2023 11:16:05 +0800 In-Reply-To: <20230203102208.53215-1-guojiufu@linux.ibm.com> (Jiufu Guo's message of "Fri, 3 Feb 2023 18:22:04 +0800") Message-ID: <7ncz65jabu.fsf@ltcden2-lp1.aus.stglabs.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Mvn_H7VJnrRYByOA1-upNrdrw5u5Gjl_ X-Proofpoint-GUID: yW1yEAWzG54IlzbN_VTJy7XNOeOqPv3- X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-19_15,2023-02-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=662 suspectscore=0 bulkscore=0 adultscore=0 clxscore=1015 priorityscore=1501 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302200027 Received-SPF: pass client-ip=148.163.156.1; envelope-from=guojiufu@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_EF=-0.1,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,KAM_SHORT,SPF_HELO_PASS,SPF_SOFTFAIL,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, Gental ping these patches: https://gcc.gnu.org/pipermail/gcc-patches/2023-February/611286.html BR, Jeff (Jiufu) Jiufu Guo writes: > Hi, > > For a given constant, it would be profitable if we can use 2 insns to build. > This patch enables more constants building through 2 insns: one is "li or lis", > another is 'rldicl, rldicr or rldic'. > Through checking and analyzing the characters of the insns "li/lis;rldicX", > all the possible constant values are considered by this patch. > > Previously, a patch is posted, but it is too large. > https://gcc.gnu.org/pipermail/gcc-patches/2022-September/601276.html > As suggested, I split it into this series. > > Considering the functionality and size, 4 patches are split as below: > 1. Support the constants which can be built by "li;rotldi" > Both positive and negative values from insn "li" are analyzed. > 2. Support the constants which can be built by "lis;rotldi" > We only need to analyze the negative value from "lis". > And this patch uses more code to check leading 1s and tailing 0s from "lis". > 3. Support the constants which can be built by "li/lis;rldicl/rldicr": > Leverage the APIs defined/analyzed in patches 1 and 2, > this patch checks the characters for the mask of "rldicl/rldicr" > to support more constants. > 4. Support the constants which can be built by "li/lis;rldic": > The mask of "rldic" is relatively complicated, it is analyzed in this > patch to support more constants. > > BR, > Jeff (Jiufu)