From patchwork Sun Jun 2 13:20:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajit Agarwal X-Patchwork-Id: 1942494 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=Nh04mYhx; 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 4Vscts3gbNz20Pr for ; Sun, 2 Jun 2024 23:21:09 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B3635389EC98 for ; Sun, 2 Jun 2024 13:21:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id B5800389941E for ; Sun, 2 Jun 2024 13:20:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B5800389941E 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 B5800389941E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717334450; cv=none; b=KVz+6E2BhiFaOfhI74jNvfdAUGttEwkE2MXJgqrSEbCKYyr1oOrROAfEYfiaWXWZbeTuW3XKNqUcqD4uE+iUre9yeLkP8pcVKn6rg4LNXMwkJVyGtHD046oh3EcrlUH9tpgtZxyf7AZlTQ5+1N8pMnNRMdMqDZdWwoUZfepuxTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717334450; c=relaxed/simple; bh=dLX5BK/dFe5RGkcTsFMpxOdHU6RKfPJ4nHv1NoybcQY=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=fTZEa/tG6MSMjgh61T3JqH4Nqx/c5tb4I4mabv2uaQzx8Wuy2oYTRHQ0A4ZZVtOUey9mDCYSjne8wlGy7DJ5qD1MAoPio0quNNqT5cAWZTzQjrr3/CYxjS+6wv53F7hnUzQShwmeSPJ8CmAIEHTItix7yB5DSEaryGUK9bwbTqY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 452Cc1QF025411; Sun, 2 Jun 2024 13:20:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=content-transfer-encoding : content-type : date : from : message-id : mime-version : subject : to; s=pp1; bh=Y2FuhOMOChfVAwq0uGwxt5xqvwKTiBxprBhzwIrQ7jg=; b=Nh04mYhxgGYbdoWnRXxAZc5ZewEk1eOvPVc6PsTNyAh4YY1awM1v/m800fcfhnXzOlVr kkdnQoDgFfOod7OcDiUlZwxMFI8HSgBgUseIv3gPSt+Q24N2r9iw2yvwpw1/C22l7ZI4 iimbNEUWMCvYthF0/JMVTfpfhP2ATHiyFGVPBJKh9HSEAL6iPBoUcAkjUjDWk16U9gX6 TvGsfhaq9QdXycPgXrTRchfdptfvPtbafwVxVXhvNQLzD8bKIIgpyhvgkPmGhDwDEbKE FkbFlgb3IuOe/T2eX2IBi5VamN94eOj/gC8iQdaj6SdNGCr7xZKq0t1ar6sNOBILgxwM JQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ygrrrg2h2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 02 Jun 2024 13:20:46 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 452DKj6A019579; Sun, 2 Jun 2024 13:20:45 GMT 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 3ygrrrg2h0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 02 Jun 2024 13:20:45 +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 4529YWCN031114; Sun, 2 Jun 2024 13:20:44 GMT Received: from smtprelay06.wdc07v.mail.ibm.com ([172.16.1.73]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3ygeyp2hmt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 02 Jun 2024 13:20:44 +0000 Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay06.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 452DKfGB18612790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 2 Jun 2024 13:20:43 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 80B3558055; Sun, 2 Jun 2024 13:20:41 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BC71E58043; Sun, 2 Jun 2024 13:20:37 +0000 (GMT) Received: from [9.43.46.29] (unknown [9.43.46.29]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Sun, 2 Jun 2024 13:20:37 +0000 (GMT) Message-ID: <4268a379-58d0-4b76-af96-73193b8a6e79@linux.ibm.com> Date: Sun, 2 Jun 2024 18:50:36 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Alex Coplan , Richard Sandiford , "Kewen.Lin" , Segher Boessenkool , Michael Meissner , Peter Bergner , David Edelsohn , gcc-patches From: Ajit Agarwal Subject: [Patch, aarch64 1/1] Additional interface function implementation X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: uftvUuNX0tKC84LvENgKEa0V8wXxZ_t- X-Proofpoint-GUID: q0EUQhqSo_eBMfjn5DwZ-zVo9k8u01ux 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-02_08,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 adultscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406020114 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, KAM_MANYTO, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, 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.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 Hello All: Common infrastructure using generic code for pair mem fusion of different targets. Implements additional interface virtual function implementation required for rs6000 target. Tested for aarch64-linux-gnu. Thanks & Regards Ajit aarch64: Additional interface function implementation Common infrastructure using generic code for pair mem fusion of different targets. Implements additional interface virtual function implementation required for rs6000 target. 2024-06-02 Ajit Kumar Agarwal gcc/ChangeLog: * config/aarch64/aarch64-ldp-fusion.cc: Add target specific implementation of additional virtual functions added in pair_fusion struct. --- gcc/config/aarch64/aarch64-ldp-fusion.cc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gcc/config/aarch64/aarch64-ldp-fusion.cc b/gcc/config/aarch64/aarch64-ldp-fusion.cc index 0af927231d3..784cdc3937c 100644 --- a/gcc/config/aarch64/aarch64-ldp-fusion.cc +++ b/gcc/config/aarch64/aarch64-ldp-fusion.cc @@ -104,6 +104,29 @@ struct aarch64_pair_fusion : public pair_fusion bool load_p) override final; rtx destructure_pair (rtx regs[2], rtx pattern, bool load_p) override final; + + bool should_handle_unordered_insns (rtl_ssa::insn_info *, + rtl_ssa::insn_info *) override final + { + return true; + } + + bool fuseable_store_p (rtl_ssa::insn_info *, + rtl_ssa::insn_info *) override final + { + return true; + } + + bool fuseable_load_p (rtl_ssa::insn_info *) override final + { + return true; + } + + void set_multiword_subreg (rtl_ssa::insn_info *, rtl_ssa::insn_info *, + bool) override final + { + return; + } }; bool