From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6AE9F3857340; Sat, 2 Dec 2023 03:18:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AE9F3857340 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701487127; bh=I64/LiS43+KW35vtNcwDQ2rz/y27V2riMb3XlCD0QkM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZgR5AWqV345C4HdEMbc6IwQKTRfpL5UBSOwUvri6PwpAvx+7dreJVHYrZoHEfKt/1 b4Z+JN1TX8IxKoKEmoCByoc9GObg/GHW2eB//yzwpQV0QLXnEekbQ0DvwR718HLLSu KpWcylQX0g1RpWxxQOPIUS+nCqOpexvT3jkaSZLc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112743] RISC-V: building FAIL with -march=rv64(or rv32)gc_zve32f_zvfh_zfh Date: Sat, 02 Dec 2023 03:18:46 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: WAITING 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=3D112743 --- Comment #5 from GCC Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:e5bbeedcf7020dfa3870d11cf2b85bc048655698 commit r14-6068-ge5bbeedcf7020dfa3870d11cf2b85bc048655698 Author: Pan Li Date: Thu Nov 30 15:08:50 2023 +0800 RISC-V: Bugfix for legitimize move when get vec mode in zve32f If we want to extract 64bit value but ELEN < 64, we use RVV vector mode with EEW =3D 32 to extract the highpart and lowpart. However, this approach doesn't honor DFmode when movdf pattern when ZVE32f and of course results in ICE when zve32f. This patch would like to reuse the approach with some additional handing, consider lowpart bits is meaningless for FP mode, we need one int reg as bridge here. For example: rtx tmp =3D gen_rtx_reg (DImode) reg:DI =3D reg:DF (fmv.d.x) // Move DF reg to DI ... perform the extract for high and low parts ... reg:DF =3D reg:DI (fmv.x.d) // Move DI reg back to DF after all done PR target/112743 gcc/ChangeLog: * config/riscv/riscv.cc (riscv_legitimize_move): Take the exist (U *mode) and handle DFmode like DImode when EEW is 32bits for ZVE32F. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/pr112743-2.c: New test. Signed-off-by: Pan Li =