From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC0193858D35; Sun, 7 May 2023 17:57:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC0193858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683482235; bh=JUw7j4jN+NwSySroF6QLIxyAKAlGn8qSfswTtACCcug=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gXcLZ35dMMl2KXKFjhiM8zyZIUw5Rqf8BSJUYJh7nACDMV2RcLoD3irUiC6JAI9sn eXhevgi/hMvgKGqYtR53I3VctyevaJiKcLdGd5LUtPqD+LGPIWFkE+tUtAMcEtnD/V IQJlaqLWEEnSk4YJnqAWDl/fQ6xhmPariToPzm+o= From: "sepotvin at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109760] riscv Internal compiler error in extract_insn after addition of XTheadCondMov Date: Sun, 07 May 2023 17:57:15 +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: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sepotvin at gmail 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: 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=3D109760 --- Comment #1 from Stephane Potvin --- Slightly simpler reproduction program void b() { double c; for(;;) { void e(void*); e(c ? 0 : b); } } Which give the following error gcc -O2 -mcpu=3Dsifive-u74 -c libimagequant.c.i libimagequant.c.i: In function =E2=80=98b=E2=80=99: libimagequant.c.i:7:1: error: unrecognizable insn: 7 | } | ^ (insn 7 6 8 2 (set (reg:DI 137) (if_then_else:DI (eq:DF (reg/v:DF 135 [ c ]) (reg:DF 138)) (reg:DI 139) (const_int 0 [0]))) -1 (nil)) during RTL pass: vregs libimagequant.c.i:7:1: internal compiler error: in extract_insn, at recog.cc:2791 0x27546d _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/rtl-error.cc:= 108 0x27548f _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) /usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/rtl-error.cc:= 116 0x6abbff extract_insn(rtx_insn*) /usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/recog.cc:2791 0x4a790b instantiate_virtual_regs_in_insn /usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/function.cc:1= 611 0x4a790b instantiate_virtual_regs /usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/function.cc:1= 985 0x4a790b execute /usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/function.cc:2= 034 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=