From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CAA0E3858C5E; Mon, 5 Feb 2024 11:57:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAA0E3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707134243; bh=eQBtSL6aRVZ30U7BbC2a0FCKFrm1+LzFu9zqPQneyqc=; h=From:To:Subject:Date:From; b=UyVbIoLZzxs+hKXtUc86LCyXg+DHCWE7zOb/H6K8o0W+FdYnCQqoorn1G2QP7JYw3 cs9sB6OGcFXRGU17epH8o+woASe7mIsby/TI3SL+poqBq4TpWRbavRUiLuej70Jv2W d46OMrYf98DQ1nA32xgRGZb07Zf3zg+kommB4HLk= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113766] New: ICE: in generate_insn, at config/riscv/riscv-vector-builtins.cc:4186 with (invalid?) __riscv_vfredosum_tu() Date: Mon, 05 Feb 2024 11:57:23 +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: zsojka at seznam dot cz 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 cf_gcchost cf_gcctarget 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=3D113766 Bug ID: 113766 Summary: ICE: in generate_insn, at config/riscv/riscv-vector-builtins.cc:4186 with (invalid?) __riscv_vfredosum_tu() Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: riscv64-unknown-linux-gnu Created attachment 57323 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57323&action=3Dedit reduced testcase Compiler output: $ riscv64-unknown-linux-gnu-gcc -march=3Drv64gv testcase.c=20 during RTL pass: expand testcase.c: In function 'foo': testcase.c:6:3: internal compiler error: in generate_insn, at config/riscv/riscv-vector-builtins.cc:4186 6 | __riscv_vfredosum_tu(); | ^~~~~~~~~~~~~~~~~~~~~~ 0xb9bd49 riscv_vector::function_expander::generate_insn(insn_code) /repo/gcc-trunk/gcc/config/riscv/riscv-vector-builtins.cc:4186 0xb9bd49 riscv_vector::function_expander::generate_insn(insn_code) /repo/gcc-trunk/gcc/config/riscv/riscv-vector-builtins.cc:4184 0x1bcd50d riscv_vector::function_expander::expand() /repo/gcc-trunk/gcc/config/riscv/riscv-vector-builtins.h:582 0x1bcd50d riscv_vector::expand_builtin(unsigned int, tree_node*, rtx_def*) /repo/gcc-trunk/gcc/config/riscv/riscv-vector-builtins.cc:4589 0x12ca5e3 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /repo/gcc-trunk/gcc/expr.cc:12350 0x1187df8 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.h:316 0x1187df8 expand_call_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:2864 0x1187df8 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3926 0x1187df8 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4071 0x118e45e expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6127 0x1190067 execute /repo/gcc-trunk/gcc/cfgexpand.cc:6866 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. $ riscv64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-riscv64/bin/riscv64-unknown-lin= ux-gnu-gcc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-8795-20240204180638-= g91e09b3a7e9-checking-yes-rtl-df-extra-riscv64/bin/../libexec/gcc/riscv64-u= nknown-linux-gnu/14.0.1/lto-wrapper Target: riscv64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --with-cloog --with-ppl --with-isl --with-isa-spec=3D2.2 --with-sysroot=3D/usr/riscv64-unknown-linux-gnu --build=3Dx86_64-pc-linux-g= nu --host=3Dx86_64-pc-linux-gnu --target=3Driscv64-unknown-linux-gnu --with-ld=3D/usr/bin/riscv64-unknown-linux-gnu-ld --with-as=3D/usr/bin/riscv64-unknown-linux-gnu-as --disable-multilib --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-8795-20240204180638-g91e09b3a7= e9-checking-yes-rtl-df-extra-riscv64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240205 (experimental) (GCC)=