From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D0183861871; Mon, 19 Feb 2024 09:51:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D0183861871 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708336300; bh=rD+K5T1xa//cJsOPTUebynjechCiLGM8P/zxDG/I4wQ=; h=From:To:Subject:Date:From; b=kRl/GJBNHtmF7sqSfaiHSjnYk+0c3Tkxnhiueb5JdVRBVg3aLXai/iX0vXrOHjF0N UAcC0yJ7azSL+OHP7K+duZgdq2i9H0nOH7umf8f5iUy1dtZgKr4qZRFYkna26G8048 4fC7nFBLKxhwQ9FaYhSsD8cz66Lr9Ow73jbqmnV0= From: "janschultke at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113988] New: during GIMPLE pass: bitintlower: internal compiler error: in lower_stmt, at gimple-lower-bitint.cc:5470 Date: Mon, 19 Feb 2024 09:51:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: janschultke at googlemail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D113988 Bug ID: 113988 Summary: during GIMPLE pass: bitintlower: internal compiler error: in lower_stmt, at gimple-lower-bitint.cc:5470 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: janschultke at googlemail dot com Target Milestone: --- https://godbolt.org/z/3ez1erYa3 unsigned rem_fast(_BitInt(512) x, unsigned y) { const int size =3D sizeof(x) / 4; unsigned digits[size]; __builtin_memcpy(digits, &x, sizeof(digits)); unsigned rem =3D 0; for (int i =3D 0; i < size; ++i) { unsigned long long temp =3D (unsigned long long) rem << 32 | digits= [size - i - 1]; rem =3D temp % y; } return rem; } during GIMPLE pass: bitintlower : In function 'rem_fast': :1:10: internal compiler error: in lower_stmt, at gimple-lower-bitint.cc:5470 1 | unsigned rem_fast(_BitInt(512) x, unsigned y) { | ^~~~~~~~ 0x233bebc internal_error(char const*, ...) ???:0 0x96c2ff fancy_abort(char const*, int, char const*) ???:0=