From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 731393858C30; Fri, 1 Dec 2023 01:57:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 731393858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701395840; bh=D+OF2e95a4lUhDsoIUyeogX0dZH065GA7M9P+f2MNpQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MeF9+KCioybwphkEJLp+x7iI8502G5c0nEVFsQoy0Ev0W0B0QA1o51ZqNkx4D23Ao oaRwGAw+bx2nolD4AdcFmJoRKKmfTqu51wIJCekEO5GiLUKI/Vir6drJY1SXTrrQzf /0cA5yxZsQX8qQU8IW3zLRzfZKXNsPgwdmp1+TaY= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112773] [14 Regression] RISC-V ICE: in force_align_down_and_div, at poly-int.h:1828 on rv32gcv_zvl256b Date: Fri, 01 Dec 2023 01:57:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai 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: 14.0 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=3D112773 --- Comment #3 from JuzheZhong --- I see. I didn't reproduce the ICE since I didn't enable gcc_assert_checking. Could you tell me how to enable it ? I hack the codes as follows: diff --git a/gcc/poly-int.h b/gcc/poly-int.h index 828714ee910..24cce294414 100644 --- a/gcc/poly-int.h +++ b/gcc/poly-int.h @@ -1825,7 +1825,7 @@ template inline poly_int force_align_down_and_div (const poly_int &value, Cb align) { - gcc_checking_assert (can_align_p (value, align)); + gcc_assert (can_align_p (value, align)); poly_int r; POLY_SET_COEFF (Ca, r, 0, ((value.coeffs[0] Then I can see the assertion FAIL.=