From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4FFAA3858D28; Mon, 1 May 2023 19:16:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FFAA3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682968592; bh=kB2Ng3OVK4u7AAJPj+rXzr8u5v+lov3a6YX1O8UISD8=; h=From:To:Subject:Date:From; b=oFDO7B+uPcZUQ+WZ5m8Ijz4jPoT0k2fqO59DEJscOEpJRT0J1dDheV6Qk4DRJ+pxs nSzZDI+Ah5Xsb0lk3+H+rKR9a02u2o+VDnRO53XLONJSROXEUH0PfYADLrc4/v77KN R/Ct3WltyLEeZIhlOHxd2z2+7ic/qI7nZTobbv7k= From: "david_harris at hmc dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109687] New: riscv64-unknown-elf-gcc internal error on embench when using bit manipulation extensions Date: Mon, 01 May 2023 19:16:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david_harris at hmc dot edu 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D109687 Bug ID: 109687 Summary: riscv64-unknown-elf-gcc internal error on embench when using bit manipulation extensions Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: david_harris at hmc dot edu Target Milestone: --- Created attachment 54965 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54965&action=3Dedit -freport-bug output This bug occurs when march=3Drv32imac_zba_zbb_zbs but not when march=3Drv32imac riscv64-unknown-elf-gcc -c -fdata-sections -ffunction-sections -march=3Drv32imac_zba_zbb_zbs -mabi=3Dilp32 -Os -msave-restore -I/home/harris/cvw/addins/embench-iot/support -I/home/harris/cvw/addins/embench-iot/config/riscv32/boards/rv32wallyverilog -I/home/harris/cvw/addins/embench-iot/config/riscv32/chips/generic -I/home/harris/cvw/addins/embench-iot/config/riscv32 -DCPU_MHZ=3D1 -DWARMUP_HEAT=3D1 -o libminver.o /home/harris/cvw/addins/embench-iot/src/minver/libminver.c /home/harris/cvw/addins/embench-iot/src/minver/libminver.c: In function 'minver.part.0': /home/harris/cvw/addins/embench-iot/src/minver/libminver.c:211:1: error: unrecognizable insn: 211 | } | ^ (insn 435 0 0 (set (reg:SI 275) (const_int 2048 [0x800])) -1 (expr_list:REG_EQUAL (const_int 2048 [0x800]) (nil))) during RTL pass: reload /home/harris/cvw/addins/embench-iot/src/minver/libminver.c:211:1: internal compiler error: in extract_insn, at recog.cc:2791 0x619df0 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /opt/riscv/riscv-gnu-toolchain/gcc/gcc/rtl-error.cc:108 0x619e12 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) /opt/riscv/riscv-gnu-toolchain/gcc/gcc/rtl-error.cc:116 0x6192dc extract_insn(rtx_insn*) /opt/riscv/riscv-gnu-toolchain/gcc/gcc/recog.cc:2791 0x9fe384 ira_remove_insn_scratches(rtx_insn*, bool, _IO_FILE*, rtx_def* (*)(rtx_def*)) /opt/riscv/riscv-gnu-toolchain/gcc/gcc/ira.cc:5356 0xa39509 remove_insn_scratches /opt/riscv/riscv-gnu-toolchain/gcc/gcc/lra.cc:2091 0xa3ae47 lra_emit_move(rtx_def*, rtx_def*) /opt/riscv/riscv-gnu-toolchain/gcc/gcc/lra.cc:512 0xa4e49d curr_insn_transform /opt/riscv/riscv-gnu-toolchain/gcc/gcc/lra-constraints.cc:4608 0xa4fc54 lra_constraints(bool) /opt/riscv/riscv-gnu-toolchain/gcc/gcc/lra-constraints.cc:5203 0xa3d8d2 lra(_IO_FILE*) /opt/riscv/riscv-gnu-toolchain/gcc/gcc/lra.cc:2375 0x9f86d9 do_reload /opt/riscv/riscv-gnu-toolchain/gcc/gcc/ira.cc:5940 0x9f86d9 execute /opt/riscv/riscv-gnu-toolchain/gcc/gcc/ira.cc:6126 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.=