From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 415433858CDB; Wed, 17 Jan 2024 12:57:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 415433858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705496265; bh=0nnYyAuynq22X7igoP+nFWYHU5n4464hVvYgjN8O3OE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xxVOhpV2y80aEbJLh4RJ4jXAQlJR/dRof/xZnmmWgXWfe3y617NpeXyxyhRjeiUNv zY9sTf+rOXkwX0v0V+gLGXTnK/lWDYXRJYSuu1a07rZxUn41GTjFqvoxxqMV5SMHbq /YG1swB5TpWBZ3JN+p2aC1YtTY5fmpu7izQvhqoE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113408] ICE: in handle_cast, at gimple-lower-bitint.cc:1539 at -O with _BitInt() Date: Wed, 17 Jan 2024 12:57:44 +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=3D113408 --- Comment #3 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:2fb78d431ff3c05997ef31837d6eb319d84a4239 commit r14-8184-g2fb78d431ff3c05997ef31837d6eb319d84a4239 Author: Jakub Jelinek Date: Wed Jan 17 13:55:50 2024 +0100 lower-bitint: Fix up VIEW_CONVERT_EXPR handling [PR113408] Unlike NOP_EXPR/CONVERT_EXPR which are GIMPLE_UNARY_RHS, VIEW_CONVERT_E= XPR is GIMPLE_SINGLE_RHS and so gimple_assign_rhs1 contains the operand wra= pped in VIEW_CONVERT_EXPR tree. So, to handle it like other casts we need to look through it. 2024-01-17 Jakub Jelinek PR tree-optimization/113408 * gimple-lower-bitint.cc (bitint_large_huge::handle_stmt): For VIEW_CONVERT_EXPR, pass TREE_OPERAND (rhs1, 0) rather than rhs1 to handle_cast. * gcc.dg/bitint-71.c: New test.=