From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C2493857034; Mon, 4 Dec 2023 23:06:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C2493857034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701731212; bh=65Eeq+ydHchFm8Sn1+P9aNhuoz866R+3hslJAXKVvCo=; h=From:To:Subject:Date:From; b=oslN6B8DBIXQ79TvzvfLGCKImwDn0uIbuwwhbYeAO5XLxtLHgPC1jK6lOGHnIPnsi 4Y9oM4aZgwBiuuOt0tkQU5O4UHmHMVTlsfrNG7PIATie5FvoiXIwC8zsftEpvTD19O YelGHlFO3Kwm191e12a6nnWRd2bh1KiBPFhfltN8= From: "patrick at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112852] New: [14 Regression] RISCV ICE: vsetvl pass: in partial_subreg_p, at rtl.h:3187 on rv64gcv_zvl512b Date: Mon, 04 Dec 2023 23:06:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: patrick at rivosinc 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: 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=3D112852 Bug ID: 112852 Summary: [14 Regression] RISCV ICE: vsetvl pass: in partial_subreg_p, at rtl.h:3187 on rv64gcv_zvl512b Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: patrick at rivosinc dot com Target Milestone: --- Created attachment 56801 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56801&action=3Dedit -freport-bug output Only seen on rv64gcv_zvl512b: pr112598 FAIL: gcc.c-torture/compile/20090907-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (internal compiler error: in partial_subreg_p, at rtl.h:3187) Command: > /scratch/tc-testing/tc-dec-4-trunk/build-rv64gcv/bin/riscv64-unknown-linu= x-gnu-gcc -march=3Drv64gcv_zvl512b -mabi=3Dlp64d -O3 20090907-1.c -ftracer = -funroll-loops -freport-bug during RTL pass: vsetvl 20090907-1.c: In function 'metronomefb_probe': 20090907-1.c:84:1: internal compiler error: in partial_subreg_p, at rtl.h:3= 187 84 | } | ^ 0xb3a42b partial_subreg_p(machine_mode, machine_mode) ../../../gcc/gcc/rtl.h:3187 0xb3a42b partial_subreg_p(machine_mode, machine_mode) ../../../gcc/gcc/rtl.h:3181 0xb3a42b rtl_ssa::function_info::record_use(rtl_ssa::function_info::build_info&, rtl_ssa::insn_info*, rtx_obj_reference) ../../../gcc/gcc/rtl-ssa/insns.cc:524 0x23ee521 rtl_ssa::function_info::add_insn_to_block(rtl_ssa::function_info::build_inf= o&, rtx_insn*) ../../../gcc/gcc/rtl-ssa/insns.cc:662 0x2a0876d rtl_ssa::function_info::add_block_contents(rtl_ssa::function_info::build_in= fo&) ../../../gcc/gcc/rtl-ssa/blocks.cc:948 0x2a08e8a rtl_ssa::function_info::start_block(rtl_ssa::function_info::build_info&, rtl_ssa::bb_info*) ../../../gcc/gcc/rtl-ssa/blocks.cc:1064 0x2a08f1c rtl_ssa::function_info::bb_walker::before_dom_children(basic_block_def*) ../../../gcc/gcc/rtl-ssa/blocks.cc:117 0x225c207 dom_walker::walk(basic_block_def*) ../../../gcc/gcc/domwalk.cc:311 0x2a0a5c9 rtl_ssa::function_info::process_all_blocks() ../../../gcc/gcc/rtl-ssa/blocks.cc:1281 0x23ebb68 rtl_ssa::function_info::function_info(function*) ../../../gcc/gcc/rtl-ssa/functions.cc:50 0x1734d12 pre_vsetvl::pre_vsetvl() ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:2218 0x1733527 pass_vsetvl::lazy_vsetvl() ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3454 0x173391f pass_vsetvl::execute(function*) ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3518 0x173391f pass_vsetvl::execute(function*) ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3501 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See for instructions. Preprocessed source stored into /scratch/tmp/ccO9eL35.out file, please atta= ch this to your bugreport. Testcase: https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dgcc/testsuite/gcc.c-tortu= re/compile/20090907-1.c;h=3D12cf1185b93b973ce21e24039c00d9b7be855894;hb=3DH= EAD Godbolt: https://godbolt.org/z/chdK4TnKx creduced testcase: char a; char *b; int c; void d() { int e =3D 0, f =3D 0; for (; f <=3D a; f++) if (b[f]) e =3D f - 1; c =3D e; }=