This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/52624] Missing __builtin_bswap16
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Mar 2012 07:51:20 +0000
- Subject: [Bug target/52624] Missing __builtin_bswap16
- Auto-submitted: auto-generated
- References: <bug-52624-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624
--- Comment #5 from Uros Bizjak <ubizjak at gmail dot com> 2012-03-22 07:51:20 UTC ---
(In reply to comment #4)
> I think that it should be available on all architectures, like the 32-bit and
> 64-bit flavors. And, for x86, you don't really need to add new patterns.
I agree.
Regarding new patterns - we need at least named expander, and the existing ones
are strict_low_part types. They model the fact that higpart of the register is
preserved, so ideal to implement bswap32.
Can you please take the middle-end part of the generic implementation?