From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 379423858D39; Mon, 19 Jun 2023 17:40:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 379423858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687196439; bh=IhxcrLfJLJtA8oF4Tm8v0hjczgLPqIy/QXqi7eslaas=; h=From:To:Subject:Date:In-Reply-To:References:From; b=s1lCbERO3KfW3JOWwBUb3m+c6whICFsdcZwuG5qIICQDszfRLGaAqAnosfWouzqP+ PrT8dc8/ANF5biPc5MB8D6QgBgtv1eVaH1egGtJqga6nfGvQzZVX1vNiG2mrKIc623 G2frg2M+Be2KP30GGesc2WZ5hhYaR8bLdRPI0ivA= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102989] Implement C2x's n2763 (_BitInt) Date: Mon, 19 Jun 2023 17:40:32 +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: jakub 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: attachments.isobsolete attachments.created 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 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #55329|0 |1 is obsolete| | --- Comment #66 from Jakub Jelinek --- Created attachment 55364 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55364&action=3Dedit gcc14-bitint-wip.patch Updated patch. This can already do some simple lowering of the large/huge _BitInt operations, like: void foo (_BitInt(192) *x, _BitInt(192) *y, _BitInt(135) *z, _BitInt(135) *w) { x[0] &=3D y[0]; x[1] |=3D y[1]; x[2] ^=3D y[2]; x[3] =3D ~y[3]; z[0] &=3D w[0]; z[1] |=3D w[1]; z[2] ^=3D w[2]; z[3] =3D ~w[3]; } _BitInt(517) a, b, c, d, e, f; void bar (void) { a &=3D b; c |=3D b; d ^=3D b; e =3D ~f; } Additions/subtractions/left shift by small constant next.=