From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 169433858C52; Thu, 21 Dec 2023 10:14:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 169433858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703153671; bh=UfkmPgiTdPPLb0JpIv7wWXqy9P3q6/7LBAPJ+8SXNwQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MVwIxbG8Q4UkjFwlVfoTkIwdNfxghxPM5+IilEhFvZktAfZ6GQS8Qn1Ot7MIGIE9G srkTAQHHJT3HzVdJ+n5N+fehiS1g0Ds5WhzTPiRc7L8HsDHcaN8rde9XbcfDNK1VHj gqAceVUr9fpjdAdR7QP9uq+i9r43mxFqtcqkXL9I= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112941] during GIMPLE pass: bitintlower ICE: in handle_operand_addr, at gimple-lower-bitint.cc:2126 (gimple-lower-bitint.cc:2134) at -O with _BitInt() Date: Thu, 21 Dec 2023 10:14: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=3D112941 --- Comment #10 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:3d1bdbf64c2ed5be70fbff687b2927e328297b81 commit r14-6777-g3d1bdbf64c2ed5be70fbff687b2927e328297b81 Author: Jakub Jelinek Date: Thu Dec 21 11:13:42 2023 +0100 lower-bitint: Avoid nested casts in muldiv/float operands [PR112941] Multiplication/division/modulo/float operands are handled by libgcc cal= ls and so need to be passed as array of limbs with precision argument, using handle_operand_addr. That code can't deal with more than one cas= t, so the following patch avoids merging those cases. .MUL_OVERFLOW calls use the same code, but we don't actually try to mer= ge the operands in that case already. 2023-12-21 Jakub Jelinek PR tree-optimization/112941 * gimple-lower-bitint.cc (gimple_lower_bitint): Disallow merging a cast with multiplication, division or conversion to floating point if rhs1 of the cast is result of another single use cast in the same bb. * gcc.dg/bitint-56.c: New test. * gcc.dg/bitint-57.c: New test.=