From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1DFBE3858D20; Sun, 31 Dec 2023 06:31:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1DFBE3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704004273; bh=qkMpSuKMbO/00A5Q28zi3zg1MK8i4uOoiC064Td/rMk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OHJd+PlD1lPAx5BxbZswTlZ8Zsrg6cHZCAbfrQGbG1JNDUdA2Dkm53O/htfiJqqIb zvF5F9AL5HT2IqN8M3oan01A4wbZksWaq/Y1tCrm+CWFghibJGOFH6IvUhH/Vp7kZG XVmncbYRnqA+726Iu+Vwes2rnaNrHYw3V6Hc26nU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113180] MIPS: bitops on an long long struct uses ins instead dins (or with -mstrict-align on aarch64) Date: Sun, 31 Dec 2023 06:31:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: unknown X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: everconfirmed component cf_gcctarget bug_status keywords cf_reconfirmed_on short_desc 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=3D113180 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Component|target |middle-end Target|mips |mips aarch64*-*-* Status|UNCONFIRMED |NEW Keywords| |missed-optimization Last reconfirmed| |2023-12-31 Summary|MIPS: bitops on an long |MIPS: bitops on an long |long struct uses ins |long struct uses ins |instead dins |instead dins (or with | |-mstrict-align on aarch64) --- Comment #1 from Andrew Pinski --- The same issue happens on aarch64 with -mstrict-align though it is not as b= ad as mips but the underlying issue is the same: ``` sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] lsr x0, x0, 32 bfi w0, w1, 28, 4 str w0, [sp, 12] ldr x0, [sp, 8] add sp, sp, 32 ret ``` Confirmed. there might be other bug reports which are very similar too.=