From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 644363857B98; Wed, 15 Mar 2023 19:38:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 644363857B98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678909133; bh=tp+tDQoaWw9MjgOqRv6h6GsbfIenG9KACHzHGeFobrI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=szoZ1hq4NDgdLz3EmjocgSvPNKgpUz2RMrRYWV37rcaBS+mi1J4EF8eIpzNc36yd3 oqN6iLqXDTuY14mf4XxEQ1zVU8vYXM8MgP7+viBu423oexd/TGFEnouALkwRGY+Mjf URUEpTCg3+fxJg1FVGhphQjWQHw4yszpfXWGVbXA= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109093] [13 regression] csmith: a February runtime bug ? Date: Wed, 15 Mar 2023 19:38:52 +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: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D109093 --- Comment #20 from Jakub Jelinek --- (In reply to H.J. Lu from comment #19) > .DEFERRED_INIT has >=20 > insn 259 261 297 4 (set (reg/f:DI 144)=20 > (plus:DI (reg/f:DI 19 frame) > (const_int -32 [0xffffffffffffffe0]))) 241 {*leadi} > (expr_list:REG_EQUAL (plus:DI (reg/f:DI 19 frame) > (const_int -32 [0xffffffffffffffe0])) > (nil))) >=20 > vs explicit __builtin_memset >=20 > insn 264 149 153 34 (set (reg/f:DI 144)=20 > (plus:DI (reg/f:DI 19 frame) > (const_int -32 [0xffffffffffffffe0]))) 241 {*leadi} > (expr_list:REG_EQUIV (plus:DI (reg/f:DI 19 frame) > (const_int -32 [0xffffffffffffffe0])) > (nil))) >=20 > LRA can eliminate (reg/f:DI 144) with REG_EQUIV, but not with REG_EQUAL. Neither .DEFERRED_INIT nor explicit zero initialization fills those at all,= try -O2 -ftrivial-auto-var-init=3Dzero: void foo (char *); void bar (void) { char a[48]; char b[48] =3D {}; foo (a); foo (b); } REG_EQUAL (in both cases) is added during cse1.=