From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC82C3857730; Fri, 26 May 2023 16:16:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC82C3857730 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685117776; bh=+AAdTpokwyWzDFwi2IA6XgaDTghSgDcEYhqRPtj1HDI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wYKsDNMIozBmiS1cCZq31hJno/sJ+1jIczBvq7IIM3iWQTRZO5zIDWyoknFaDPBMA 8SZSVdvjru8Vg90WQ/ZHPxjfx/mZOOvDr5ZdT/sVWvlGJ9s5OqZxElZ+m7bNfYnEQJ V9OVFilPeXaoqfPKpskiiNiajX9PQly1CRm2TVzk= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102989] Implement C2x's n2763 (_BitInt) Date: Fri, 26 May 2023 16:16:16 +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: 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 #51 from Jakub Jelinek --- Note, I've only tested it so far on _BitInt(256) a =3D 0x1234ab461289cdab8d111007b461289cdab8d1wb; _BitInt(256) b =3D 0x2385eabcd072311074bcaa385eabcd07111007b46128wb; _BitInt(384) c =3D (_BitInt(384)) 0x1234ab461289cdab8d111007b461289cdab8d1w= b * 0x2385eabcd072311074bcaa385eabcd07111007b46128wb; _BitInt(384) d; extern void __mulbitint3 (unsigned long *, int, const unsigned long *, int, const unsigned long *, int); void foo () { __mulbitint3 (&d, 384, &a, 256, &b, 196); } multiplication, nothing else, guess it will be easier to test it when we can emit from the compiler. And obviously no testing of the big endian limb ordering handling until we add some arch that will support it (if we do tha= t at all).=