From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 933583858D20; Sun, 31 Dec 2023 06:44:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 933583858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704005061; bh=3DYglFVNvDlV0AEtl4tj6tj8fcA/a6WO7rt6NR5iyUg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S+OOEHDqwPyAgb4spu0awWlYPEg3E1pQSVytc9P2qaaJbzxHH4UA2g2e0UhOJiSoA 4Ql99cqDuRjah3TpkY4crhsCQHiM97E6Xt34J9QsyWQBNK4kFqkGYl31Y5NA1+GiZP hdriRpFL6WZDElYyTVRkFSi8Zo5k9eXfC/+qWVLI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113179] [11/12/13/14 Regression] MIPS: INS is used for long long, before SLL Date: Sun, 31 Dec 2023 06:44:21 +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: needs-bisection, wrong-code 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: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component everconfirmed keywords cf_reconfirmed_on bug_status 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=3D113179 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|rtl-optimization |middle-end Ever confirmed|0 |1 Keywords| |needs-bisection Last reconfirmed| |2023-12-31 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski --- 5.4 produced during expand: ``` (insn 10 7 11 2 (set (reg:QI 198 [ D.1502 ]) (truncate:QI (reg/v:DI 197 [ b ]))) /app/example.cpp:10 -1 (nil)) (insn 11 10 12 2 (set (reg:SI 199) (mem/j:SI (reg/v/f:DI 196 [ a ]) [1 a_5(D)->d+-3 S4 A32])) /app/example.cpp:10 -1 (nil)) (insn 12 11 13 2 (set (zero_extract:SI (reg:SI 199) (const_int 1 [0x1]) (const_int 0 [0])) (subreg:SI (reg:QI 198 [ D.1502 ]) 0)) /app/example.cpp:10 -1 (nil)) ``` But 11.2.0 produces: ``` (insn 10 7 11 2 (set (reg:SI 197) (mem/j:SI (reg/v/f:DI 195 [ a ]) [1 a_4(D)->d+-3 S4 A32])) "/app/example.cpp":10:14 -1 (nil)) (insn 11 10 12 2 (set (zero_extract:SI (reg:SI 197) (const_int 1 [0x1]) (const_int 0 [0])) (subreg:SI (reg/v:DI 196 [ b ]) 4)) "/app/example.cpp":10:14 -1 (nil)) ``` The truncate is missing ... Would be interesting to do a bisect here on what caused the wrong code ...=