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 8AAFC3858408 for ; Tue, 4 Jun 2024 06:20:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8AAFC3858408 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 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8AAFC3858408 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717482050; cv=none; b=k5o6q3KqpaTvExceDR/oT65Zd479gX6a20ryNEQisJMtDsrxQSnWf/GESVOA9u41yNI7EfTaMKTMrW20IyNgwrcYup4uzD2NAhlXLKfkQB2jrVO9yk90Rtd6sUKWEsmYB+TjICu/aTTwHstGQIUyNau8EiGDhFXerL/oJlKW1qA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717482050; c=relaxed/simple; bh=0EVC7bp5yLU4zUDwUnj7RkuLycCIPwr/ni5jQ++AOJU=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=skllMt7yx9TvR5OxITBUtIDzHbmXYVoTMa7j/8J3LVGlylxvwhwL75yU8LsxXgYf8iRT3e/Zyi27cHDUuXlXOXPWoho/VzmCuW3oRzfQAmlBOh9LFq7ZLtcDI086fVgGuy39pnLXjgDRNV+l2pjmvTRMcvpgmOZnMYr+K4XYpvU= ARC-Authentication-Results: i=1; server2.sourceware.org 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 1sENXJ-0006Nz-T2 for gcc-patches@gcc.gnu.org; Tue, 04 Jun 2024 02:20:48 -0400 Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 4546KF1U025219; Tue, 4 Jun 2024 06:20:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc : content-transfer-encoding : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=pp1; bh=wIDLGNIBOjBt/I8fHQ0M5+S/GEXZOgtyE0qtYkfVXRg=; b=G93UIexzq01ToDyK6TktktJazFAulb94Dm2/Jljos+i8r+p34FXr1NnXnLphqewdvHvW 08r9yhAXLDkpgLsplG4flje2cacEBime1B3mv6DbW0jss01y6E5Fz3Fyhdd+X9OUDcDO TDpkGDG5/se9ZuRfT9EnWC9DIOM7YPvOsUtydRgTHRLPhj7bw1rDcdhiGQpda7PIAzgt AyS2k/XbAdIiqNu/SnI4O/QwFsXETlGNaSi+xPJRkG7p8SEK1M9tTfNwMW6eFAlFWXgN ZWpDfslWrZiGYEPFwLQT8N7NSIK+pxruiLDKmJfb0JwfwesLki7GbBNScQcs4RfJq+41 Ig== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yhw5cr1y9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 06:20:43 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45464hn0031129; Tue, 4 Jun 2024 06:20:42 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3ygeypceak-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 06:20:41 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4546KaI152429178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Jun 2024 06:20:38 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 247452004B; Tue, 4 Jun 2024 06:20:36 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9431120040; Tue, 4 Jun 2024 06:20:34 +0000 (GMT) Received: from [9.200.158.244] (unknown [9.200.158.244]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 4 Jun 2024 06:20:34 +0000 (GMT) Message-ID: Date: Tue, 4 Jun 2024 14:20:28 +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 Subject: Re: [PATCH 5/13 ver 3] rs6000, Remove redundant float/double type conversions Content-Language: en-US To: Carl Love References: <59db7e45-e780-4d20-a364-526f9e45800b@linux.ibm.com> Cc: gcc-patches@gcc.gnu.org, Segher Boessenkool , "bergner@linux.ibm.com" From: "Kewen.Lin" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: OqGtg6msxsvlEdpmlzJ6yaXBVvbmDu1b X-Proofpoint-ORIG-GUID: OqGtg6msxsvlEdpmlzJ6yaXBVvbmDu1b X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-04_02,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 phishscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 adultscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040049 Received-SPF: pass client-ip=148.163.156.1; envelope-from=linkw@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_EF=-0.1,NICE_REPLY_A=-2.522,RCVD_IN_MSPIKE_H3=0.001,RCVD_IN_MSPIKE_WL=0.001,SPF_HELO_NONE=0.001,SPF_PASS=-0.001,T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,GIT_PATCH_0,NICE_REPLY_A,SPF_HELO_PASS,SPF_SOFTFAIL,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 List-Id: Hi, on 2024/5/30 00:00, Carl Love wrote: > This is a new patch to removed the built-ins that were inadvertently missing in the previous series. > > Carl > -------------------------------------------------------------- > > rs6000, Remove redundant float/double type conversions Nit: s! float/double type conversions! vector float/double conversion builtins! OK for trunk with this subject tweaked. BR, Kewen > > The following built-ins are redundant as they are covered by another > overloaded built-in. > > __builtin_vsx_xvcvspdp covered by vec_double{e,o} > __builtin_vsx_xvcvdpsp covered by vec_float{e,o} > __builtin_vsx_xvcvsxwdp covered by vec_double{e,o} > __builtin_vsx_xvcvuxddp_uns covered by vec_double > > Remove the redundant built-ins. They are not documented nor do they have > test cases. > > gcc/ChangeLog: > * config/rs6000/rs6000-builtins.def (__builtin_vsx_xvcvspdp, > __builtin_vsx_xvcvdpsp, __builtin_vsx_xvcvsxwdp, > __builtin_vsx_xvcvuxddp_uns): Remove. > --- > gcc/config/rs6000/rs6000-builtins.def | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/gcc/config/rs6000/rs6000-builtins.def b/gcc/config/rs6000/rs6000-builtins.def > index cea2649b86c..6049f3a4599 100644 > --- a/gcc/config/rs6000/rs6000-builtins.def > +++ b/gcc/config/rs6000/rs6000-builtins.def > @@ -1679,9 +1679,6 @@ > const signed int __builtin_vsx_xvcmpgtsp_p (signed int, vf, vf); > XVCMPGTSP_P vector_gt_v4sf_p {pred} > > - const vf __builtin_vsx_xvcvdpsp (vd); > - XVCVDPSP vsx_xvcvdpsp {} > - > const vsll __builtin_vsx_xvcvdpsxds (vd); > XVCVDPSXDS vsx_fix_truncv2dfv2di2 {} > > @@ -1691,9 +1688,6 @@ > const vsll __builtin_vsx_xvcvdpuxds_scale (vd, const int); > XVCVDPUXDS_SCALE vsx_xvcvdpuxds_scale {} > > - const vd __builtin_vsx_xvcvspdp (vf); > - XVCVSPDP vsx_xvcvspdp {} > - > const vsll __builtin_vsx_xvcvspsxds (vf); > VEC_VSIGNEDE_V4SF vsignede_v4sf {} > > @@ -1715,9 +1709,6 @@ > const vf __builtin_vsx_xvcvsxdsp (vsll); > XVCVSXDSP vsx_xvcvsxdsp {} > > - const vd __builtin_vsx_xvcvsxwdp (vsi); > - XVCVSXWDP vsx_xvcvsxwdp {} > - > const vf __builtin_vsx_xvcvsxwsp (vsi); > XVCVSXWSP vsx_floatv4siv4sf2 {} > > @@ -1727,9 +1718,6 @@ > const vd __builtin_vsx_xvcvuxddp_scale (vsll, const int<5>); > XVCVUXDDP_SCALE vsx_xvcvuxddp_scale {} > > - const vd __builtin_vsx_xvcvuxddp_uns (vull); > - XVCVUXDDP_UNS vsx_floatunsv2div2df2 {} > - > const vf __builtin_vsx_xvcvuxdsp (vull); > XVCVUXDSP vsx_xvcvuxdsp {} >