From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D2B43858431; Sat, 20 Jan 2024 11:37:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D2B43858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705750651; bh=sxQFyBH9QPYvZQcC1kMt+DVJy736UXHoiWJeROeWrzk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=q0kGuulJ07vaSgeWvUZJHy3zk7UFApP3rQHwLC46fKYIYUcYlotZTFaKhQdGscORu 4ebI18OA5n4LwxbqzV3/hQxV/kIKeQKzWYmwv0j748ro5hGJyyTXUt/XOJaSAfmJTU xFRdd7VuTFA9BCHnUkTKXkNwXfNcVtV2s9kwdmvc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113462] ICE: in handle_cast, at gimple-lower-bitint.cc:1539 at -O with _BitInt() in a struct Date: Sat, 20 Jan 2024 11:37:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub 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=3D113462 --- Comment #3 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:efc677f3e78abf02264e4a64c751b4ecdc918ec9 commit r14-8303-gefc677f3e78abf02264e4a64c751b4ecdc918ec9 Author: Jakub Jelinek Date: Sat Jan 20 12:36:32 2024 +0100 lower-bitint: Handle INTEGER_CST rhs1 in handle_cast [PR113462] The following patch ICEs because fre3 leaves around unfolded _1 =3D VIEW_CONVERT_EXPR<_BitInt(129)>(0); statement and in handle_cast I was expecting just SSA_NAMEs for the large/huge _BitInt to large/huge _BitInt casts; INTEGER_CST is something we can handle in that case exactly the same, as the handle_operand recursion handles those. Of course, maybe we should also try to fold_stmt such cases somewhere in bitint lowering preparation. 2024-01-20 Jakub Jelinek PR tree-optimization/113462 * gimple-lower-bitint.cc (bitint_large_huge::handle_cast): Handle rhs1 INTEGER_CST like SSA_NAME. * gcc.dg/bitint-76.c: New test.=