From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60A583858C31; Thu, 14 Mar 2024 07:44:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60A583858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710402294; bh=pmNzE8IJRWi8zE0XtwNLUlNsJz7S5MRLqNy3CV45Nvw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DoGJMACOFxIzylCllHE2LVQzhIbhQ+G52fO8jUSbBYToLEEeqoBetAEMZIqC3FcEY fVS2e2g1mC4e2OKwwEGhassXC4lob0RDu7q4yfHlkIMMLQXI3l5ALR73eLpuocAku0 zOLOh8IzJMP/ztTIenDTIGZcYCaUrw3lAFXeNbCw= From: "clyon at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114323] [14 Regression] MVE vector load intrinsic miscompiled since r14-5622-g4d7647edfd7d98 Date: Thu, 14 Mar 2024 07:44:53 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: clyon at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: clyon at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status everconfirmed 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=3D114323 Christophe Lyon changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-03-14 Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #2 from Christophe Lyon --- Tried a similar testcase for aarch64 (the intrinsics framework for MVE is v= ery close to SVE's), and noticed that when running dse_classify_store() it sees= a use of the initialized memory: svuint32_t foo ()=20=20 { const uint32_t D.11583[4]; svuint32_t V0; :=20 D.11583[0] =3D 1;=20 D.11583[1] =3D 2;=20 D.11583[2] =3D 3;=20 D.11583[3] =3D 4;=20 V0_7 =3D svld1_u32 ({ -1, 0, 0, 0, ... }, &D.11583); D.11583 =3D{v} {CLOBBER(eol)}; return V0_7; } # .MEM_6 =3D VDEF <.MEM_ D.11583[3] =3D 4; # VUSE <.MEM_6> V0_7 =3D svld1_u32 ({ -1, 0, 0, 0, ... }, &D.11583); dse_classify_store() on arm/MVE does not see such a use and decides the initialization is a dead store.=