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 08CC23858D35 for ; Wed, 8 Nov 2023 18:07:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 08CC23858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 08CC23858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.137.180 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699466847; cv=none; b=hPqaKHPU72JBLBcsbtEUWptsASCW+ZCy+fOLLL8Ky9TsQKskUBevBygGqEYczbsDyuWnHrm3bT0Ze3qkIyC99If1rp1vKuiVz+ZGQXWrvkhdxmX/HLYsR/JaLdF3JWhW08kJdLwp8X4vMB4bMS+ypaPu+mNUrmhcgZr79BFVdOg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699466847; c=relaxed/simple; bh=AsVubWhW2j27UFXYM93lpz375+1eayewqLAMhJ5uLU8=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=kWrfMQbg3PyL6lvKuj/AKQCv1LzXIdEjinp1bDrQT+2agQ4FPXKi1/5iq7fnoSgeKtnAryo3sfGV8CezrTtZgHnpx6pRINlvCQkGlz5h04pYEjafl3wExLgESBJNY3M4R0nRIeg5vn0j9w5xppRucN7pPJlPDTFICks1TDJdCwk= ARC-Authentication-Results: i=1; server2.sourceware.org X-CSE-ConnectionGUID: ZPn/RBmBQYGNCdC7FglIxw== X-CSE-MsgGUID: Mfnr5oZfSGqhzNRAEmXgXg== X-IronPort-AV: E=Sophos;i="6.03,286,1694764800"; d="scan'208";a="22280273" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 08 Nov 2023 10:07:20 -0800 IronPort-SDR: FtF/otR6+Y482l631wnOeU/7d+db4kJrpTanshqIGWT0VCHLcd16s91CqqgocyX4/JD6J8fO1q FATvoGvj4nvfQaZZP2jpnffqhnq0ZQRiMob/Se1hBhhv4yUNd6Pch2xQfb+HfOLiy+hGHVAA1J NbUIRppsbWRPQQVF9T1yKLdB38f6aKt7NpgqEDqQtwesbFbnFuWWN558PcUQcXGtNjqdK5H0MW B27W8lWSczNKQVmfioWyqs1IE6Yudlv56+KTZxY/peCS42ssrD4qcJUW075G/nRMu4wcLh/ZwO yu0= Date: Wed, 8 Nov 2023 18:07:17 +0000 From: Joseph Myers To: Jakub Jelinek CC: Subject: Re: [PATCH] libgcc: Add {unsigned ,}__int128 <-> _Decimal{32,64,128} conversion support [PR65833] In-Reply-To: Message-ID: <5b701ac9-18c2-4c12-a530-b748e74d988d@codesourcery.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3103.4 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 Wed, 8 Nov 2023, Jakub Jelinek wrote: > Hi! > > The following patch adds the missing > {unsigned ,}__int128 <-> _Decimal{32,64,128} > conversion support into libgcc.a on top of the _BitInt support > (doing it without that would be larger amount of code and I hope all > the targets which support __int128 will eventually support _BitInt, > after all it is a required part of C23) and because it is in libgcc.a > only, it doesn't hurt that much if it is added for some architectures > only in GCC 15. > Initially I thought about doing this on the compiler side, but doing > it on the library side seems to be easier and more -Os friendly. > The tests currently require bitint effective target, that can be > removed when all the int128 targets support bitint. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? OK. -- Joseph S. Myers joseph@codesourcery.com