From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AB7CA3858C39; Mon, 23 Oct 2023 17:45:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB7CA3858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698083104; bh=Aj61hY6ZqaNONiFA6voT9kulni/kwCk8MY9h5tgJc9Q=; h=From:To:Subject:Date:From; b=gLB4AU76VDYYuyh41JBzo5mMNUa0HQFCuMjbBYpRZ7ElE/+KRFLCAsDw0f5iQv5xi 5FtEAK6h71n/W/SxY2SJ6wo/gPQ9MZq1MTZ2QcTYws2nDK4jgYMYYcdK9RyrSAoYbB imRZpL4WD4GMvegzsYoP+R3y0UFRqjzjqWX4QcFo= From: "patrick at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111941] New: RISC-V ICE: in merge, at config/riscv/riscv-vsetvl.cc:1996 Date: Mon, 23 Oct 2023 17:45:04 +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=3D111941 Bug ID: 111941 Summary: RISC-V ICE: in merge, at config/riscv/riscv-vsetvl.cc:1996 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 56180 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56180&action=3Dedit -freport-bug output First bad commit: r14-4773-g29331e72d0c Confirmed to still be present on trunk: r14-4809-g55731b59e60 Building newlib 4.1.0 fails on ldtoa.c https://sourceware.org/git/?p=3Dnewlib-cygwin.git;a=3Dblob;f=3Dnewlib/libc/= stdlib/ldtoa.c;h=3D1cc97151afb693b04c864243a4466038b06ac94f;hb=3D415fdd4279= b85eeec9d54775ce13c5c412451e08 creduce'd testcase: ./bin/riscv64-unknown-elf-gcc -fno-builtin -O2 -march=3Drv64gv_zbb -mabi=3D= lp64d -S -o test.S red.c ./bin/riscv64-unknown-elf-gcc -fno-builtin -O2 -march=3Drv32gv_zbb -mabi=3D= ilp32d -S -o test.S red.c > cat red.c typedef struct { short a[0] } b; c; d[]; b e; *f; j() { short *g =3D d; int h; unsigned short i; for (; h < 10; h++) i |=3D *f++; if (i) i =3D 1; h =3D 0; for (; h < 10; h++) g[h] =3D e.a[h]; c =3D i; }=