From patchwork Fri Apr 30 18:55:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 1472448 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=rPvRf1dN; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FX1lV0M5Qz9sW8 for ; Sat, 1 May 2021 04:55:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6DDCE385742D; Fri, 30 Apr 2021 18:55:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DDCE385742D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1619808915; bh=sb/6XsvEt43V+DZ0cWqVRtEXMoZ5S4iLG6Gu/zpvN0I=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=rPvRf1dNo12ItP7By1iZEIk4SzpBZgAG6lVYHqcYjP4rUm5badjXkZf5T9JAGejxw wbLkJ//AE9e76gjRuyf2ihzgcJQ6QRtZoPS4TG/lnS4PVmDGyYFmPAaFfvjPMUsJBr ZrU+oPajFHI0BJVVNpoTyEslp/alFl6YmYuMK+d4= 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 854503857811 for ; Fri, 30 Apr 2021 18:55:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 854503857811 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13UImttt147947; Fri, 30 Apr 2021 14:55:12 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 388qgkr2yd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Apr 2021 14:55:12 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 13UIpF3Y155422; Fri, 30 Apr 2021 14:55:11 -0400 Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com with ESMTP id 388qgkr2y1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Apr 2021 14:55:11 -0400 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 13UIqS7Z027189; Fri, 30 Apr 2021 18:55:10 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma02wdc.us.ibm.com with ESMTP id 384ayadr2b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Apr 2021 18:55:10 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 13UItAS637814538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Apr 2021 18:55:10 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3C17EAE064; Fri, 30 Apr 2021 18:55:10 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C878AAE05F; Fri, 30 Apr 2021 18:55:09 +0000 (GMT) Received: from Bills-MacBook-Pro.local (unknown [9.211.124.117]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 30 Apr 2021 18:55:09 +0000 (GMT) Subject: [PATCH "60/57"] rs6000: Fix AltiVec builtin marked as VSX To: gcc-patches@gcc.gnu.org References: Message-ID: <42e5c9ef-8d54-7a72-16fc-c3ca4570f0e2@linux.ibm.com> Date: Fri, 30 Apr 2021 13:55:09 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: XH97m1_WwAHxQKPxHymfr7rlnAjDt5iK X-Proofpoint-GUID: UdwQ6gXMgS06dQU94MGow9_r54Ltkw9r X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-30_11:2021-04-30, 2021-04-30 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=999 adultscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104300125 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Bill Schmidt via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: wschmidt@linux.ibm.com Cc: dje.gcc@gmail.com, segher@kernel.crashing.org Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" On 4/27/21 10:32 AM, Bill Schmidt wrote: > The design of the target-specific built-in function support in the > Power back end has not stood the test of time. The machinery is > grossly inefficient, confusing, and arcane; and adding new built-in > functions is inefficient and error-prone. This patch set introduces a > replacement. Iain Sandoe turned up one more bug for me in regression testing. Another case where I mis-categorized a built-in, this time as "VSX" versus "AltiVec".  As with the other two, I'd appreciate consideration of this patch along with the rest of the patch set. Thank you! (Iain tells me that this is all there is to find, so that should be the end of the "spare" patches for now.) Much obliged, Bill 2021-04-30 Bill Schmidt gcc/ * config/rs6000/rs6000-builtin-new.def (__builtin_altivec_lvx_v1ti): Move from [vsx] to [altivec]. --- gcc/config/rs6000/rs6000-builtin-new.def | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def index f106e1de1fd..27d2be679a7 100644 --- a/gcc/config/rs6000/rs6000-builtin-new.def +++ b/gcc/config/rs6000/rs6000-builtin-new.def @@ -333,6 +333,9 @@ pure vsi __builtin_altivec_lvx (signed long, const void *); LVX altivec_lvx_v4si {ldvec} + pure vsq __builtin_altivec_lvx_v1ti (signed long, const void *); + LVX_V1TI altivec_lvx_v1ti {ldvec} + pure vsc __builtin_altivec_lvx_v16qi (signed long, const void *); LVX_V16QI altivec_lvx_v16qi {ldvec} @@ -1134,9 +1137,6 @@ ; VSX builtins. [vsx] - pure vsq __builtin_altivec_lvx_v1ti (signed long, const void *); - LVX_V1TI altivec_lvx_v1ti {ldvec} - pure vd __builtin_altivec_lvx_v2df (signed long, const void *); LVX_V2DF altivec_lvx_v2df {ldvec}