From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 919593858D20; Mon, 15 Jan 2024 18:24:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 919593858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705343051; bh=U1Hz1/JaFyDn41N2r6PO87Jl81esTmcPhYpMweXW6zI=; h=From:To:Subject:Date:From; b=LRH4U2BTWL0NeKOuH7fl5BWi+WTYw5E6tBxd1ODSEFp9aju/DZ6DwqJdnIDB8AJIP nrCk961HicnLOee+Ki1TKBrWVo4vAFshqXc00lHWlhUa5drHLYTUDdf46vHYNrQqRa uYgmM2BJgjB+dHID1IkIb4gLpBLo3dsnVyUuqfR0= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113404] New: ICE: in to_constant, at poly-int.h:588 with -march=rv64gcv -mbig-endian --param=riscv-vector-abi Date: Mon, 15 Jan 2024 18:24:10 +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: ice-on-valid-code 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 keywords 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=3D113404 Bug ID: 113404 Summary: ICE: in to_constant, at poly-int.h:588 with -march=3Drv64gcv -mbig-endian --param=3Driscv-vector-abi Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code 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 57088 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57088&action=3Dedit reduced testcase This has been reduced from gcc.target/riscv/rvv/base/float-point-dynamic-frm-66.c Compiler output: $ riscv64-unknown-linux-gnu-gcc -march=3Drv64gcv -mbig-endian --param=3Driscv-vector-abi a-float-point-dynamic-frm-66.i a-float-point-dynamic-frm-66.i: In function 'test_float_point_dynamic_frm': a-float-point-dynamic-frm-66.i:2:14: warning: ABI for the vector type is currently in experimental stage and may changes in the upcoming version of = GCC. [-Wpsabi] 2 | vfloat32m1_t test_float_point_dynamic_frm(vfloat32m1_t) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ during RTL pass: expand a-float-point-dynamic-frm-66.i:2:14: internal compiler error: in to_constan= t, at poly-int.h:588 0xab4c2c poly_int<2u, unsigned short>::to_constant() const /repo/gcc-trunk/gcc/poly-int.h:588 0xab4de1 poly_int<2u, unsigned short>::to_constant() const /repo/gcc-trunk/gcc/tree.h:4055 0xab4de1 default_function_arg_padding(machine_mode, tree_node const*) /repo/gcc-trunk/gcc/targhooks.cc:844 0x12e2327 locate_and_pad_parm(machine_mode, tree_node*, int, int, int, tree_node*, args_size*, locate_and_pad_arg_data*) /repo/gcc-trunk/gcc/function.cc:4061 0x12e2aca assign_parm_find_entry_rtl /repo/gcc-trunk/gcc/function.cc:2614 0x12e2c89 assign_parms /repo/gcc-trunk/gcc/function.cc:3693 0x12e59df expand_function_start(tree_node*) /repo/gcc-trunk/gcc/function.cc:5152 0x112fafb execute /repo/gcc-trunk/gcc/cfgexpand.cc:6739 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-7255-20240115165927-= g6c703b4eb68-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-7255-20240115165927-g6c703b4eb= 68-checking-yes-rtl-df-extra-riscv64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240115 (experimental) (GCC)=