From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1E09D3847725; Wed, 3 Apr 2024 19:27:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E09D3847725 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712172429; bh=CHCtDYtpcHfCoBWxKJ3504Vbopd6hAoXjy5JHewDZGM=; h=From:To:Subject:Date:From; b=QJWF3Zl96Vwu1T9ZZy4RpRwzbFFB8yOORKZwq6YyTE79/sRV0o4yozKv45AK0gsKX wbLzX/bKR8/PMyr1hZ/1GMEj818Kxv+woY0MstwNrXRF/I8804J8guEakA6xUlGb1T ONwvxFgmRROMKsuggBLRFR1hhpBWAPys93OfKPGA= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114577] New: Inefficient codegen for SVE/NEON bridge Date: Wed, 03 Apr 2024 19:27:08 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget 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=3D114577 Bug ID: 114577 Summary: Inefficient codegen for SVE/NEON bridge Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: tnfchris at gcc dot gnu.org Target Milestone: --- Target: aarch64* The following sequence: #include svint32_t f (int *a, int *b) { int32x4_t va =3D vld1q_s32 (a); svint32_t za =3D svset_neonq_s32 (svundef_s32 (), va); return za; } -O2 -march=3Darmv9-a is expected to be a simple load but generates: f: ldr q31, [x0] ptrue p3.s, vl4 sel z0.s, p3, z31.s, z0.s ret instead of the expected (from clang): f: // @f ldr q0, [x0] ret it looks like GCC's implementation of svset_neonq_s32 with svundef does not become a view_convert/subreg.=