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 09:56:18 +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 #7 from Uros Bizjak <ubizjak at gmail dot com> 2012-03-22 09:56:18 UTC ---
(In reply to comment #6)
> I think that the builtin should be expanded into a rotate (left or right) if
> they are available. On x86 this works out of the box since the rotates are
> there.
Please note that the rotate is split back into bswap, so we can avoid rotate by
using "xchg %rh, %rl" on P4.