From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D6933858C01; Thu, 28 Sep 2023 19:01:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D6933858C01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695927717; bh=OkyW1BTV5tP9ezbuz/Dkzfno7eWWNM6Co5zgXu0MBtQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ym/WHVjM1+TQ4UCIYc7P2s7pcbSilvpFUCv6TNwJnvZpTVl+nHYWN9/Wo+UHorTQZ qGJqnGelSRDGo4rfJxM7VgYa2leGkOnhLFcyumDCaAp0/tbt4gtUCx1jm3lDCTS3fA Wc9jSb4/nhmDXUsPku/6zRYhRwJ7SW1ZFvPBEclw= From: "patrick at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111634] RISC-V vector: ICE RTL check: expected code 'reg', have 'lo_sum' in rhs_regno, at rtl.h:1934 Date: Thu, 28 Sep 2023 19:01:56 +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: 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: 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=3D111634 --- Comment #1 from Patrick O'Neill --- Comment on attachment 56011 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56011 -freport-bug output >// Target: riscv64-unknown-linux-gnu >// Configured with: /scratch/tc-testing/rtl-checking-testsuite/build-rv64g= cv/../gcc/configure --target=3Driscv64-unknown-linux-gnu --prefix=3D/ >// Thread model: posix >// Supported LTO compression algorithms: zlib zstd >// gcc version 14.0.0 20230928 (experimental) (g8552dcd8e44) >// >// during RTL pass: expand >// ../gcc/gcc/testsuite/gcc.dg/pr109417.c: In function 'main': >// ../gcc/gcc/testsuite/gcc.dg/pr109417.c:17:17: internal compiler error: = RTL check: expected code 'reg', have 'lo_sum' in rhs_regno, at rtl.h:1934 >// 0x956453 rtl_check_failed_code1(rtx_def const*, rtx_code, char const*, = int, char const*) >// ../../../gcc/gcc/rtl.cc:770 >// 0x9833f5 rhs_regno(rtx_def const*) >// ../../../gcc/gcc/rtl.h:1934 >// 0x985924 rhs_regno(rtx_def const*) >// ../../../gcc/gcc/config/riscv/riscv.cc:2058 >// 0x985924 riscv_legitimize_address >// ../../../gcc/gcc/config/riscv/riscv.cc:2045 >// 0xf58089 memory_address_addr_space(machine_mode, rtx_def*, unsigned cha= r) >// ../../../gcc/gcc/explow.cc:477 >// 0xf3e6ba change_address_1 >// ../../../gcc/gcc/emit-rtl.cc:2294 >// 0xf40d7c offset_address(rtx_def*, rtx_def*, unsigned long) >// ../../../gcc/gcc/emit-rtl.cc:2532 >// 0xf8a321 expand_assignment(tree_node*, tree_node*, bool) >// ../../../gcc/gcc/expr.cc:5734 >// 0xe5c075 expand_gimple_stmt_1 >// ../../../gcc/gcc/cfgexpand.cc:3946 >// 0xe5c075 expand_gimple_stmt >// ../../../gcc/gcc/cfgexpand.cc:4044 >// 0xe61927 expand_gimple_basic_block >// ../../../gcc/gcc/cfgexpand.cc:6100 >// 0xe63bd6 execute >// ../../../gcc/gcc/cfgexpand.cc:6835 >// Please submit a full bug report, with preprocessed source. >// Please include the complete backtrace with any bug report. >// See for instructions. > >// /scratch/tc-testing/rtl-checking-testsuite/build-rv64gcv/libexec/gcc/ri= scv64-unknown-linux-gnu/14.0.0/cc1 -quiet -imultilib lib64/lp64d ../gcc/gcc= /testsuite/gcc.dg/pr109417.c -quiet -dumpbase pr109417.c -dumpbase-ext .c -= march=3Drv64gc -mabi=3Dlp64d -mcmodel=3Dmedlow -mtune=3Drocket -misa-spec= =3D20191213 -march=3Drv64imafdc_zicsr_zifencei -O3 -fdiagnostics-color=3Dne= ver -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagno= stics-urls=3Dnever -fdiagnostics-path-format=3Dseparate-events -fdiagnostic= s-text-art-charset=3Dnone -freport-bug -o - -frandom-seed=3D0 -fdump-noaddr > ># 0 "../gcc/gcc/testsuite/gcc.dg/pr109417.c" ># 0 "" ># 0 "" ># 1 "/scratch/tc-testing/rtl-checking-testsuite/build-rv64gcv/sysroot/usr/= include/stdc-predef.h" 1 3 4 ># 0 "" 2 ># 1 "../gcc/gcc/testsuite/gcc.dg/pr109417.c" > > > >int printf(const char *, ...); >int c, d, *e, f[1][2], g; >int main() { > int h =3D 0, *a =3D &h, **b[1] =3D {&a}; > while (e) > while (g) { > L: > for (h =3D 0; h < 2; h++) { > while (d) > for (*e =3D 0; *e < 1;) > printf("0"); > while (c) > ; > f[g][h] =3D 0; > } > } > if (h) > goto L; > return 0; >}=