From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2FB743856092; Fri, 2 Jun 2023 10:43:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FB743856092 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685702618; bh=dR7OjhgufBf3+o8R8xckroUBM9F9qpJpRDcgrHpjxGU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iAI4r/PNvvAokBin1/YcuPsN+UOprnFVNeyrJ1jaL4QRbhqkhuXWOi0Sh0lPC59VR DewrXlRaBLPKBGeyCMdLQ0g7xikL4aY/DbsZtnsKd5t4c3veFObl2Ejgu4d/M7NH/X KmvxTET6J0Gs5NN2EaSZXUcSd+JxmSFHy/ynhDrI= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102989] Implement C2x's n2763 (_BitInt) Date: Fri, 02 Jun 2023 10:43:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102989 --- Comment #54 from rguenther at suse dot de --- On Fri, 2 Jun 2023, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102989 >=20 > Jakub Jelinek changed: >=20 > What |Removed |Added > -------------------------------------------------------------------------= --- > Attachment #55169|0 |1 > is obsolete| | >=20 > --- Comment #53 from Jakub Jelinek --- > Created attachment 55240 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55240&action=3Dedit > gcc14-bitint-wip.patch >=20 > Further updates. This introduces a new bitintlower (and bitintlower0) pa= ss, > categorizes > _BitInt types into 4 categories (small, which are kept as is as they work= out > of the box, middle, which have already more than one limb, but there exis= ts > DImode or TImode > type which is supported and covers the precision, here lowering is done by > casting to > INTEGER_TYPE and back, large which is up to double that size (so it will = be > lowered to straight line code) and huge, which will use loops. The lower= ing is > so far implemented for the middle _BitInts. > Added some runtime testsuite coverage for the small and middle _BitInts (= so on > x86-64 up to 128 bits). At least for -Os we probably want to consider moving everything but=20 small and maybe middle to out of line library functions?=