public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/106600] New: __builtin_bswap32 is not hooked up for ZBB
@ 2022-08-12 19:56 pinskia at gcc dot gnu.org
  2022-08-12 19:57 ` [Bug target/106600] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-12 19:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106600
           Summary: __builtin_bswap32 is not hooked up for ZBB
           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: riscv32

Testcase:
```
int f(int a)
{
  return __builtin_bswap32(a);
}
```
The reason is because the check for TARGET_64BIT is there even though it should
not be:
(define_insn "bswap<mode>2"
  [(set (match_operand:X 0 "register_operand" "=r")
        (bswap:X (match_operand:X 1 "register_operand" "r")))]
  "TARGET_64BIT && TARGET_ZBB"
  "rev8\t%0,%1"
  [(set_attr "type" "bitmanip")])

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12 19:56 [Bug target/106600] New: __builtin_bswap32 is not hooked up for ZBB pinskia at gcc dot gnu.org
2022-08-12 19:57 ` [Bug target/106600] " 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).