From patchwork Wed May 8 06:33:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 1932819 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=LWKuLNFb; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VZ52b5qfZz1ymg for ; Wed, 8 May 2024 16:33:59 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 265B63888C45 for ; Wed, 8 May 2024 06:33:58 +0000 (GMT) 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 AC56A384B013 for ; Wed, 8 May 2024 06:33:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AC56A384B013 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AC56A384B013 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715150016; cv=none; b=gkxr07qbQYMgpS3agwJdoKVLSeBfn9gmsGjEYgBqb1EQ07yIxOYy6WAphnb10c/fnfTAyXvfpMoCPX0el+670F5e60YDdbahh2XKf6ZSgX7AjHYG525ocS9He4iYiksCPR8pmz5bFkEolZtygfSXq7i0WNwmXdRv/OTobrFZLZw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715150016; c=relaxed/simple; bh=WFDkqsdkKdTipKCZsSDaZtSeNrmqX15M7iI9PGTM1jw=; h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To; b=qK9YMlkfD/fOhhxCs2RrjGhrblW6wT9oWH+W5Y5kyYjxf3H4whvbOjn9OqCRmZVLl0DwhAkLj1D6vhybOvzegzTgjM9zVjMXhHzZXJJr9b1EL7WTtFLZJCNSWByDf2+C+DKCI3vwx4mIpOe+jO0MICuF0vpO2oruanFOCASMbZk= ARC-Authentication-Results: i=1; server2.sourceware.org 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 4486SWTb005501; Wed, 8 May 2024 06:33:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : from : subject : to : cc : content-type : content-transfer-encoding; s=pp1; bh=qjriKH/M4gJf/abwcLhlSDTErmXaDDFu3IG3ldVJfJw=; b=LWKuLNFbkEaesKy9O3qzYfyuL0xfolOjUS7xgp8WrBko3cS/tivij0LMZI0PeOjzN4dE NcjF4ewsjMuj5Lorheg/PYlFbZqIDBNPDZbGUznhYUquG54/TnUBOOdOe7CkkIeCBbP9 xrcsMi4Ltx/Bqdd8A9tcqInXtFl2RvB3RuUvKcUX/2PU2Gc1upeHAYXbXK7b5ThgCbto AKiHTzLQOYvKsrRXkIBogGCpWzsPq4qhFnwxZg7+5N0BP5vf4PKvAgs5Wupe1AbE26tL WjdKAd8AWTzuOrKD4eY7+kKoBwfNUL2OfgHczkZCUcb3utiZ7nvTR5mYryiUcZr1tSQD qA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y044rg0bw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 06:33:33 +0000 Received: from m0353728.ppops.net (m0353728.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 4486XX9D014466; Wed, 8 May 2024 06:33:33 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y044rg0bs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 06:33:32 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4484UuKP026674; Wed, 8 May 2024 06:33:31 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3xysfwk4ux-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 06:33:30 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4486XRlL40501758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 May 2024 06:33:29 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 48F1620049; Wed, 8 May 2024 06:33:27 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A06F720040; Wed, 8 May 2024 06:33:25 +0000 (GMT) Received: from [9.200.57.36] (unknown [9.200.57.36]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 8 May 2024 06:33:25 +0000 (GMT) Message-ID: <5300d44d-b90a-9701-45ef-99f700c81b09@linux.ibm.com> Date: Wed, 8 May 2024 14:33:24 +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 Content-Language: en-US From: "Kewen.Lin" Subject: [PATCH] rs6000: Remove useless operands[3] To: GCC Patches Cc: Segher Boessenkool , David Edelsohn , Peter Bergner X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 3kxwKbOPu6xrHJYLE8qAg3YZSM5XNfIx X-Proofpoint-ORIG-GUID: 7nseJkqRxmDcKqZ-QDD4R3PwciGB7maw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-08_02,2024-05-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 mlxlogscore=805 mlxscore=0 suspectscore=0 bulkscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405080047 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi, As shown, three uses of operands[3] are totally useless, so this patch is to remove them to avoid any confusion. Bootstrapped and regtested on powerpc64-linux-gnu P8/P9 and powerpc64le-linux-gnu P9 and P10. I'm going to push this soon if no objections. BR, Kewen ----- gcc/ChangeLog: * config/rs6000/rs6000.md (@ieee_128bit_vsx_neg2): Remove the use of operands[3]. (@ieee_128bit_vsx_neg2): Likewise. (*ieee_128bit_vsx_nabs2): Likewise. --- gcc/config/rs6000/rs6000.md | 3 --- 1 file changed, 3 deletions(-) -- 2.39.1 diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 4b70b50edca..daae2f81061 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -9256,7 +9256,6 @@ (define_insn_and_split "@ieee_128bit_vsx_neg2" if (GET_CODE (operands[2]) == SCRATCH) operands[2] = gen_reg_rtx (V16QImode); - operands[3] = gen_reg_rtx (V16QImode); emit_insn (gen_ieee_128bit_negative_zero (operands[2])); } [(set_attr "length" "8") @@ -9285,7 +9284,6 @@ (define_insn_and_split "@ieee_128bit_vsx_abs2" if (GET_CODE (operands[2]) == SCRATCH) operands[2] = gen_reg_rtx (V16QImode); - operands[3] = gen_reg_rtx (V16QImode); emit_insn (gen_ieee_128bit_negative_zero (operands[2])); } [(set_attr "length" "8") @@ -9317,7 +9315,6 @@ (define_insn_and_split "*ieee_128bit_vsx_nabs2" if (GET_CODE (operands[2]) == SCRATCH) operands[2] = gen_reg_rtx (V16QImode); - operands[3] = gen_reg_rtx (V16QImode); emit_insn (gen_ieee_128bit_negative_zero (operands[2])); } [(set_attr "length" "8")