From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 637143858D1E; Mon, 19 Dec 2022 17:20:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 637143858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671470439; bh=pyO+8cX13NEc49sjJRRv5lGps7AQeebuFhin64ILYko=; h=From:To:Subject:Date:In-Reply-To:References:From; b=l+zHi34axSIZ0kSG+Aih+7mT+Hs8fS4L0j79UWR8K091x8g1wfXGKsy3SZH4UWNt7 lBdyxSRV2pVN7t4eebQp9Q6Rld2A+UFdMfacgPN/P2X7uyksHz1Qq3EtBmTjnSoW0H 5sU2neNOuGxAVMz+5iS6/h1WGJ9xBwSCcaoaBc7k= From: "avieira at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108177] MVE predicated stores to same address get optimized away Date: Mon, 19 Dec 2022 17:20:39 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: avieira 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=3D108177 --- Comment #3 from avieira at gcc dot gnu.org --- The architecture describes it as only writing the true-predicated bytes and leaving the others untouched. I guess reading and writting to the same memo= ry is the best we can do to 'mimic' that in RTL. SVE does the same as x86, so = I'll try that approach over unspec_volatile.=