From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3768A3857C52; Tue, 13 Feb 2024 22:33:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3768A3857C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707863626; bh=P2xoW6gvgTK4Mswwcw0kKbPNHZzB5eeM0Wo7+LmXuOE=; h=From:To:Subject:Date:From; b=n+AOBWxdhJSv0BWL6Nf1mx1fbzIKUfFky/HP+t+UOFDQXaPR0JG6NXOjX5+GEGw/p 3rgWWVo0/VeyIEcqKeaifLO6MTEkGscmkpracYFRlYSDjmVod32d6tUxg3wNRjbwrb XPZDLnSPjHT+VnDwJqs4AvD16KzaKLOxULXfF2f4= From: "ewlu at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113913] New: [14] RISC-V: suboptimal code gen for intrinsic vcreate Date: Tue, 13 Feb 2024 22:33:45 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: ewlu at rivosinc 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=3D113913 Bug ID: 113913 Summary: [14] RISC-V: suboptimal code gen for intrinsic vcreate Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ewlu at rivosinc dot com Target Milestone: --- godbolt: https://godbolt.org/z/svPsddaTd Functions like=20 vfloat16m2_t test_vcreate_v_f16m1_f16m2 (vfloat16m1_t v0, vfloat16m1_t v1) { return __riscv_vcreate_v_f16m1_f16m2 (v0, v1); } are generating code like test_vcreate_v_f16m1_f16m2: vmv1r.v v11,v8 vmv1r.v v10,v9 vmv1r.v v8,v11 vmv1r.v v9,v10 ret which should be optimized away into a nop like later functions in the testc= ase test_vcreate_v_i64m2_i64m8: ret=