From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C6AF3858D32; Mon, 8 May 2023 14:52:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C6AF3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683557573; bh=yd1pU9aK4MiXvsw24i1k5szNjW/8ROrqu6t1YgHiaaM=; h=From:To:Subject:Date:From; b=seCQOAvDuCpwkk6w49riuZj23Uodxu/FBJJWag0bioQCSSUAl45llvz2XUWK3fx3O 5lxWQZd86UzXH/P62rgg3iAfyYCz6k9pct65rAZ+jzcZyB0mNviGDHPPBEvDg5jVvx kaoIh3bj8v26aH9VxwAOBOBk5e5CFkWBMOk92BzQ= From: "pan2.li at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109773] New: RISC-V: ICE when build RVV Intrinisc Date: Mon, 08 May 2023 14:52:53 +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 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=3D109773 Bug ID: 109773 Summary: RISC-V: ICE when build RVV Intrinisc 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: --- There will be one ICE when trying to build the below code with the option '-march=3Drv64gcv -O3 -fno-schedule-insns -c -S test.c -o -'. #include "riscv_vector.h" void f4 (int32_t * a, int32_t * b, int n) { if (n <=3D 0) return; int i =3D n; size_t vl =3D __riscv_vsetvl_e8mf4 (i); for (; i >=3D 0; i--) { vint32m1_t v =3D __riscv_vle32_v_i32m1 (a + i, vl); v =3D __riscv_vle32_v_i32m1_tu (v, a + i + 100, vl); __riscv_vse32_v_i32m1 (b + i, v, vl); if (i >=3D vl) continue; if (i =3D=3D 0) return; vl =3D __riscv_vsetvl_e8mf4 (vl); } } The output of compiling. > riscv64-unknown-linux-gnu-gcc -march=3Drv64gcv -O3 -fno-schedule-insns -c= -S test.c -o - .file "test.c" .option nopic .attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_v1p0_zicsr2p0_zifencei2p0_zve32f1p0_zve3= 2x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" .attribute unaligned_access, 0 .attribute stack_align, 16 .text riscv64-unknown-linux-gnu-gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug). See for instructions. > riscv-gnu-toolchain@<22:46:54 =E4=B8=80 5=E6=9C=88 08>[4]*1*[3s]"~/bin/gn= u-rv64-linux-13/bin/riscv64-unknown-linux-gnu-gcc -march=3Drv64gcv -O3 -fno= -schedule-insns -c -S test.c -o -" >> ~/bin/gnu-rv64-linux-13/bin/riscv64-unknown-linux-gnu-gcc --version riscv64-unknown-linux-gnu-gcc (g1c9c53f0256) 13.1.1 20230508 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=