From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2413C38F83D1; Wed, 26 Oct 2022 08:35:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2413C38F83D1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666773358; bh=7/q7vGrnmo62iXF3YiSq5nweY2voVm2kYWxJnETWpAk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C6th2Or77iu3SJ5oVsA6TiMFx8vA+QeUfR6TTcY8+HC7c66T5U8RePjw0UkdCNpbd /s1CF4jJchviC91Nj7Dy5IS1TnxpS60qPNlsfSxzXwpp7KQ/XyME5J52+9aPPrHsF1 Nis8dlASvFYC9qeTXqBb5Hd3DPihmGmG9YJR2HVk= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102989] Implement C2x's n2763 (_BitInt) Date: Wed, 26 Oct 2022 08:35:55 +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: redi at gcc dot gnu.org 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 #24 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #23) > What about the large ones? Say for arbitrary size generic vectors we keep > them in SSA form until late (generic vector lowering) and at that point > lower, perhaps we could do the same for _BitInt? The unary as well as mo= st > of binary operations can be handled by simple loops over extraction of > limbs from the large number, then there is multiplication and > division/modulo. I think the latter is why LLVM restricts it to 128 bits > right now, Right. > https://gcc.gnu.org/pipermail/gcc/2022-May/thread.html#238657 > was an proposal from the LLVM side but I don't see it being actually furt= her > developed and don't see it on LLVM trunk. I think work on it stalled after that thread. See also https://discourse.llvm.org/t/rfc-add-support-for-division-of-large-bitint-b= uiltins-selectiondag-globalisel-clang/60329/=