From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id F0ECF3858C2B for ; Tue, 9 May 2023 20:45:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F0ECF3858C2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="4771058" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 09 May 2023 12:45:13 -0800 IronPort-SDR: KxKd3j20Yh1oTMk2Kfs2mOWEN8dNnuEIgVrzfFj9vGgF8pstJkx+1e+XXWaSwjbW5diqatv2aF Q4OXyDfA9bfQ3WtwRVIJ9d07jLgCGX5wnWlCFW/CElbYOV0cB6U7Xpes7bxiCIFZmVwG6XYRmS uILLUuFAOrTwwcgjadg+9rEKqrvYN5ou4eb21nkDQ7SNKkTbLFVJcp+plAM277yAMFYp+mgXIk WzS0HKP3Hizr5zIQEkCvesj6F8/Wye8weKEJWJf5WXgbZ56b7NDcaiKaPeiYjvDsjxRl6dMgSO uyc= Date: Tue, 9 May 2023 20:45:09 +0000 From: Joseph Myers To: Roger Sayle CC: 'GCC Patches' Subject: Re: [PATCH] Add RTX codes for BITREVERSE and COPYSIGN. In-Reply-To: <00aa01d98039$4c7668e0$e5633aa0$@nextmovesoftware.com> Message-ID: References: <00aa01d98039$4c7668e0$e5633aa0$@nextmovesoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3106.8 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: On Sat, 6 May 2023, Roger Sayle wrote: > An analysis of backend UNSPECs reveals that two of the most common UNSPECs > across target backends are for copysign and bit reversal. This patch > adds RTX codes for these expressions to allow their representation to > be standardized, and them to optimized by the middle-end RTL optimizers. Note we have bug 50481 requesting (target-independent) built-in functions for bit reversal (so this patch could be useful as a basis for implementing such built-in functions, with appropriate lowering or libgcc implementation for targets without relevant instructions). -- Joseph S. Myers joseph@codesourcery.com