From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C55C3858C00; Sun, 18 Sep 2022 18:04:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C55C3858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663524273; bh=9Mppo+Z7JVlfL2hAqua8XtjvvvzLagK/SugVbhZaUbw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=azPTLuiydMgNxjDElgB9nQ7o9JlvkhmLdpRR8YIJgtp+gCKoTNvrSIsNq03R3wMTG fVUp55r1JhxyaHNWLyko7YhDFqyMNmkS9yiygMy6s1/tnJ/K/Zo+o3OdkekAMa+xKl oOyFZB7vAWj7D1oZAs5FhB4Z+iEl1IAzLJg8FQ3k= From: "dimitar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106562] PRU: Inefficient code for zero check of 64-bit (boolean) AND result Date: Sun, 18 Sep 2022 18:04:32 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: dimitar at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dimitar at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D106562 --- Comment #1 from Dimitar Dimitrov --- I explored setting REGMODE_NATURAL_SIZE=3D4 for PRU. This required adjustm= ents in many places in middle end to use REGMODE_NATURAL_SIZE instead of word_mo= de. That however proved too intrusive. And I don't see how other targets would benefit. I'll instead go with defining an expansion of cbranchdi4 for PRU. That woul= d be contained in the PRU backend only, and thus safer.=