From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 715F73858D35; Mon, 8 May 2023 18:51:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 715F73858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683571919; bh=MSP2Tm+nCI6rj9Lr/Y1oJwsVpqT1hVbUyZIEoAOySVU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IpN7kl0C4nxE6qsQOkYHkvllEr1hLGRnQcuv1gZoaZcQ1HyGy5CpsGQgnBxRVrgHn bEH5HEiPKIpp7cJnbd8PvRo+s2AjN7Z/nTw6+T42F4jUGEodhq66MKX7Qj6qvORZ3I bdiQaj2OfmOl6QtcuiX3YQOGCnuc1hMrtZaddDHs= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109777] [14 regression] Compare-debug failure after recent changes Date: Mon, 08 May 2023 18:51:59 +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: 14.0 X-Bugzilla-Keywords: compare-debug-failure 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed component bug_status cf_reconfirmed_on 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=3D109777 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Component|middle-end |target Status|UNCONFIRMED |NEW Last reconfirmed| |2023-05-08 --- Comment #2 from Andrew Pinski --- The place where the first difference in IR (not withstanding the debug insn= s) is mach. Without -g, there is an forced_nop instruction being added: (insn:SI # # # 6 (set (reg:SI 3 R3 [177]) (ashift:SI (reg:SI 4 R4 [orig:87 x$0 ] [87]) (const_int 1 [0x1]))) "t.c":44:47# {*ashlsi3_insn} (nil)) (insn:SI # # # 6 (set (reg:SI 2 R2) (mem/c:SI (plus:SI (reg/f:SI 14 SP) (const_int 8 [0x8])) [4 %sfp+-4 S4 A32])) "t.c":44:47# {*movsi_insn} (nil)) (insn:QI # # # 6 (unspec [ (const_int 0 [0]) ] 12) "t.c":44:47# {forced_nop} (nil)) (insn:TI # # # 6 (set (reg:SI 6 R6) (reg:SI 19 I3 [165])) "t.c":44:53# {*movsi_insn} (nil)) While with -g, it is not there: (insn:TI # # # 6 (set (reg:SI 3 R3 [177]) (ashift:SI (reg:SI 4 R4 [orig:87 x$0 ] [87]) (const_int 1 [0x1]))) "t.c":44:47# {*ashlsi3_insn} (nil)) (debug_insn # # # 6 (var_location:SI D#14 (ior:SI (reg:SI 3 R3 [177]) (const_int 31 [0x1f])))# (nil)) (insn # # # 6 (set (reg:SI 2 R2) (mem/c:SI (plus:SI (reg/f:SI 14 SP) (const_int 8 [0x8])) [4 %sfp+-4 S4 A32])) "t.c":45:14# {*movsi_insn} (nil)) (insn:TI # # # 6 (set (reg:SI 6 R6) (reg:SI 19 I3 [165])) "t.c":44:53# {*movsi_insn} (nil))=