From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CEF6C3858C1F; Thu, 15 Jun 2023 07:44:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEF6C3858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686815042; bh=9b7g36GtP4y7rJJ2Vm/ID0g0UGTwd+vfZFoAxY95Cwg=; h=From:To:Subject:Date:From; b=N0lu4wTHlR6wJUA1L6cOzMpLsNS9yhmlqp+8lH7sXa/jtr9QgLoKDOpTZZYYp5Uep B1mdmrupzdqWIcecl/izv4+Bn5HoYrNz7sMyWg2HDzyb7g4Dsg0ewqx/gX+1iDBAEC vA9Zn7iTcf7bGIh7XRLtM52k3lsE9KMmy5+RLo5M= From: "pan2.li at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110265] New: RISC-V: ICE when build RVV intrinsic with "-march=rv32gc_zve64d -mabi=ilp32d" Date: Thu, 15 Jun 2023 07:44:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pan2.li at intel 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=3D110265 Bug ID: 110265 Summary: RISC-V: ICE when build RVV intrinsic with "-march=3Drv32gc_zve64d -mabi=3Dilp32d" Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: pan2.li at intel dot com Target Milestone: --- Created attachment 55325 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55325&action=3Dedit Reproduce source code Given we have the below code. #include "riscv_vector.h" vint16m1_t test_vredmax_vs_i16mf4_i16m1(vint16mf4_t vector, vint16m1_t scal= ar, size_t vl) { return __riscv_vredmax_vs_i16mf4_i16m1(vector, scalar, vl); } There will be the ICE when build similar as "riscv64-unknown-elf-gcc -march=3Drv32gc_zve64d -mabi=3Dilp32d -O3 -Wno-psabi test-int.c -c -S -o -= ". >> ../__RISC-V_INSTALL_/bin/riscv64-unknown-elf-gcc -march=3Drv32gc_zve64d = -mabi=3Dilp32d -O3 -Wno-psabi test-int.c -c -S -o - .file "test-int.c" .option nopic .attribute arch, "rv32i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0_zve32f1p0_zve32x1p0= _zve64d1p0_zve64f1p0_zve64x1p0_zvl32b1p0_zvl64b1p0" .attribute unaligned_access, 0 .attribute stack_align, 16 .text test-int.c: In function =E2=80=98test_vredmax_vs_i16mf4_i16m1=E2=80=99: test-int.c:4:10: error: invalid argument to built-in function 4 | return __riscv_vredmax_vs_i16mf4_i16m1(vector, scalar, vl); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ during RTL pass: expand test-int.c:4:10: internal compiler error: Segmentation fault 0x16e7017 crash_signal =20=20=20=20=20=20=20 /home/pli/repos/gcc/333/riscv-gnu-toolchain/gcc/__RISC-V_BUILD/../gcc/tople= v.cc:314 0x7f9dcf04251f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x111b9fa store_expr(tree_node*, rtx_def*, int, bool, bool) =20=20=20=20=20=20=20 /home/pli/repos/gcc/333/riscv-gnu-toolchain/gcc/__RISC-V_BUILD/../gcc/expr.= cc:6352 0x1119e77 expand_assignment(tree_node*, tree_node*, bool) =20=20=20=20=20=20=20 /home/pli/repos/gcc/333/riscv-gnu-toolchain/gcc/__RISC-V_BUILD/../gcc/expr.= cc:6048 0xf64d2c expand_call_stmt =20=20=20=20=20=20=20 /home/pli/repos/gcc/333/riscv-gnu-toolchain/gcc/__RISC-V_BUILD/../gcc/cfgex= pand.cc:2829 0xf68ac6 expand_gimple_stmt_1 =20=20=20=20=20=20=20 /home/pli/repos/gcc/333/riscv-gnu-toolchain/gcc/__RISC-V_BUILD/../gcc/cfgex= pand.cc:3880 0xf691b3 expand_gimple_stmt =20=20=20=20=20=20=20 /home/pli/repos/gcc/333/riscv-gnu-toolchain/gcc/__RISC-V_BUILD/../gcc/cfgex= pand.cc:4044 0xf71d20 expand_gimple_basic_block =20=20=20=20=20=20=20 /home/pli/repos/gcc/333/riscv-gnu-toolchain/gcc/__RISC-V_BUILD/../gcc/cfgex= pand.cc:6096 0xf74279 execute =20=20=20=20=20=20=20 /home/pli/repos/gcc/333/riscv-gnu-toolchain/gcc/__RISC-V_BUILD/../gcc/cfgex= pand.cc:6831=