From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 952243858D1E; Sat, 22 Jul 2023 15:50:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 952243858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690041014; bh=DMFtPjuye5Ft036+f0uwt5QJlFeKX15H6GW8szzE0vY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Vkr1KXlAt71zjszx+sOi/zqP7sZ67/pcFcGT/YunQj6u12715xR87jbWpcDUe3Att Zdmm9PFdUuGTYfyTZw5G6CtWFGEQx+0wGIYmkQ7oGkLyJrtI2jrCTyjXX+Pz7q4Ffu QGgeF73vGCHP+ssOGLtXld63bKxjOwu7aiitrLI8= From: "roland.illig at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110772] strange code generated for bit-field access Date: Sat, 22 Jul 2023 15:50:14 +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: 10.5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: roland.illig at gmx dot de 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=3D110772 --- Comment #8 from Roland Illig --- When I compile the attached code with "ARM GCC 10.5.0" and "-O2 -fPIE -ftra= pv" on godbolt.org, the generated code is correct (you can search for "#327" in= the output and then go back one branch). The code generated by godbolt.org "ARM GCC 11.4.0" with "-O2 -fPIE -ftrapv" looks good as well. So it could also be that the NetBSD version of GCC is missing a bug-fix or = two.=