From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE43938207EF; Mon, 20 Nov 2023 13:54:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE43938207EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700488490; bh=wH5Xm4RdBRPngud38QfQBQM7fPnP3KAP6c6l+3Yrkys=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j1cE9A8Wi57018SyoLHCsPWaP4Z0gtq8PqT+6qSNRKZFl3Mzie8tI/BgzKnRjGojL oAGbPepfO4hDp51QefHm43FDl4tF9+Dzy1rQ0D/bEfxa8cFgN2LnGGghISB+Ly/CBJ vLy+jaz1rMgf8iRvjTykd/zmWgjv+NSO+p/4Ticw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112597] RISC-V regression testsuite errors with rv64gcv_zvl256b Date: Mon, 20 Nov 2023 13:54:50 +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: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org 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=3D112597 --- Comment #3 from CVS Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:a27f587816b6c3b8e46e4e46777abdc915ae00aa commit r14-5624-ga27f587816b6c3b8e46e4e46777abdc915ae00aa Author: Juzhe-Zhong Date: Mon Nov 20 21:11:14 2023 +0800 RISC-V: Fix intermediate mode on slide1 instruction for SEW64 on RV32 This bug was discovered on PR112597, with -march=3Drv32gcv_zvl256b --param=3Driscv-autovec-preference=3Dfixed-vlmax ICE: bug.c:10:1: error: unrecognizable insn: 10 | } | ^ (insn 10 9 11 2 (set (reg:V4SI 140) (unspec:V4SI [ (unspec:V4BI [ (const_vector:V4BI [ (const_int 1 [0x1]) repeated x4 ]) (const_int 4 [0x4]) (const_int 2 [0x2]) repeated x3 (reg:SI 66 vl) (reg:SI 67 vtype) ] UNSPEC_VPREDICATE) (unspec:V4SI [ (reg:SI 0 zero) ] UNSPEC_VUNDEF) (subreg:V4SI (reg:V2DI 138 [ v ]) 0) (subreg:SI (reg/v:DI 136 [ b ]) 0) ] UNSPEC_VSLIDE1DOWN)) "bug.c":8:10 -1 (nil)) The rootcase is we don't enable V4SImode, instead, we already have RVVM= F2SI which is totally same as V4SI on -march=3Drv32gcv_zvl256 + --param=3Driscv-autovec-preference=3Dfixed= -vlmax. The attribute VDEMODE map to V4SI is incorrect, we remove attributes and use get_vector_mode to get right mode. PR target/112597 gcc/ChangeLog: * config/riscv/vector-iterators.md: Remove VDEMOTE and VMDEMOTE. * config/riscv/vector.md: Fix slide1 intermediate mode bug. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr112597-1.c: New test.=