From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4070E3858023; Mon, 4 Oct 2021 08:47:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4070E3858023 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85730] complex code for modifying lowest byte in a 4-byte vector Date: Mon, 04 Oct 2021 08:47:55 +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: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: NEW 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2021 08:47:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85730 --- Comment #3 from Zdenek Sojka --- (In reply to Gabriel Ravier from comment #2) > Seems like they've all got identical code generation over here since GCC = 7, > and the GCC 6 code generation is just very bad for bar (although GCC 7 al= so > changed bar and baz's code generation, which previously was as bar's is in > the description) I've got a different observation (using the branch HEADs, at -O3): gcc-6 - ICEs gcc-7, gcc-8, gcc-9 - the same code generated as in comment #1 gcc-10, gcc-11, gcc-12 - all functions are the same, bar() now has the same assembly as foo() and baz() - but is that the optimal form?=