public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/106601] New: __builtin_bswap16 code gen could be improved with ZBB enabled
@ 2022-08-12 20:09 pinskia at gcc dot gnu.org
  2022-08-12 20:40 ` [Bug target/106601] " andrew at sifive dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-12 20:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106601
           Summary: __builtin_bswap16 code gen could be improved with ZBB
                    enabled
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: riscv

unsigned short t(unsigned short a)
{
  return __builtin_bswap16(a);
}

This could just be rev8 followed by a srli (I think).

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

end of thread, other threads:[~2022-08-24 18:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12 20:09 [Bug target/106601] New: __builtin_bswap16 code gen could be improved with ZBB enabled pinskia at gcc dot gnu.org
2022-08-12 20:40 ` [Bug target/106601] " andrew at sifive dot com
2022-08-12 20:53 ` pinskia at gcc dot gnu.org
2022-08-24 18:31 ` cvs-commit at gcc dot gnu.org
2022-08-24 18:32 ` pinskia 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).