public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/108004] New: x-form logical operations with dot instructions are not emitted.
@ 2022-12-07  6:28 guihaoc at gcc dot gnu.org
  2022-12-07  6:32 ` [Bug target/108004] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: guihaoc at gcc dot gnu.org @ 2022-12-07  6:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108004

            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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-01-09 10:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07  6:28 [Bug target/108004] New: x-form logical operations with dot instructions are not emitted guihaoc at gcc dot gnu.org
2022-12-07  6:32 ` [Bug target/108004] " pinskia at gcc dot gnu.org
2022-12-07  6:32 ` pinskia at gcc dot gnu.org
2022-12-07  6:52 ` guihaoc at gcc dot gnu.org
2022-12-07  8:38 ` guihaoc at gcc dot gnu.org
2023-01-08 17:25 ` segher at gcc dot gnu.org
2023-01-08 18:58 ` pinskia at gcc dot gnu.org
2023-01-09 10:05 ` segher at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).