From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A1D23858C2B; Thu, 20 Jul 2023 11:15:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A1D23858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689851754; bh=clhDCuRi8ONwVeSIGISqki1nFiQan1PXEAU2Pg8yP5I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nT57+aVW8Gq/Pq6BKQpxDLjuoDemieiWCMdsFE2v1XgVp3pTwLSzlV1K16JUkAs/q cIg0ezX+pEw90R7ck1uUTHfcpOt+P79JcKOWeVJI4GLidke8Q1UybvDSLLazjMERIN w9x7HsKuyJj3c7BVhZDf4rqiwMSf2+HeCBygTgrk= From: "jskumari at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103784] suboptimal code for returning bool value on target ppc Date: Thu, 20 Jul 2023 11:15:53 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jskumari at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aagarwa 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=3D103784 --- Comment #15 from Surya Kumari Jangala --- This is another test which has unnecessary zero extension: #include bool glob1; bool glob2; bool foo (int a, bool d) { bool c; if (a > 2) c =3D glob1 & glob2; else c =3D glob1 | glob2; return c^d; } I am not sure if this is handled by the patch at https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624751.html as the RTL = for this test has a different CFG shape than what is mentioned in the patch.=