From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5FA838493E6; Wed, 7 Dec 2022 06:28:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5FA838493E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670394537; bh=ytZra6heRG5hgeKUucSzQb9arPLEorBmD2mYdM0GZes=; h=From:To:Subject:Date:From; b=Id+w1VCi8vI+xOsbS7c3CjbzCY9RKu4M4O0ulmKISDIM296YaopO29EFP2fcM5Cjn vjO/2GImUs7XDWVKotfjaTe3Y2X0dZFfkdLAGG9CPuNOpFbNqdZiZBE0xkiN59sB5V /KUMH6or4HvJFVBz62GNkQvcVIA3IrjeeE1Svbus= From: "guihaoc at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108004] New: x-form logical operations with dot instructions are not emitted. Date: Wed, 07 Dec 2022 06:28:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guihaoc at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D108004 Bug ID: 108004 Summary: x-form logical operations with dot instructions are not emitted. Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: guihaoc at gcc dot gnu.org Target Milestone: --- //test case int foo (int a, int b, int c, int d) { return (a & b) > 0 ? c : d; } //assemble on P9 and 3,3,4 cmpwi 0,3,0 isel 5,5,6,1 extsw 3,5 The "and" and "cmpwi" can be optimized to "and." instruction. The same as "= or" and "xor".=