From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F7453858013; Tue, 8 Feb 2022 09:25:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F7453858013 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104440] nvptx: FAIL: gcc.c-torture/execute/pr53465.c execution test Date: Tue, 08 Feb 2022 09:25:26 +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: 12.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: cf_reconfirmed_on everconfirmed 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2022 09:25:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104440 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-02-08 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #6 from Richard Biener --- (In reply to Andrew Pinski from comment #5) > (In reply to Tom de Vries from comment #4) > > (In reply to Andrew Pinski from comment #2) > > > I thought there was another bug that reported a similar issue. > >=20 > > You mean related to nvptx, or in general? >=20 > It was in general. PR 21111 is related but not the same issue. >=20 >=20 > PR 61810 is the one pointing out the problems with init-regs and talking > about removing it. I think there's a bug that ifcombine produces the situation and that valgrind complains about uninitialized uses. Note that indeed the init-regs pass should go away. It's somewhat unfeasible to compute a must-initialized regs so the issue is really hard to avoid. But nobody tried yet (it would also come at a cost of course). It would definitely inhibit all early short-circuiting on GENERIC (a good thing, but with a lot of fallout I think). That said, --param logical-op-non-short-circuit=3D0 is only a workaround un= til you hit ifcombine doing similar transforms. LOGICAL_OP_NON_SHORT_CIRCUIT is a target macro btw, so you could arrange it to be zero for nvptx (but that's of course too late since the hosts LOGICAL_OP_NON_SHORT_CIRCUIT value will be used).=