On Fri, Nov 11, 2011 at 12:13 PM, Chris Metcalf <cmetc...@tilera.com> wrote: > I'm cc'ing the gcc mailing list with this reply, so if someone there > can provide an authoritative statement, that would be great. It looks > like right now the i386/x86_64, ia64, and s390 architecture don't use > this header anyway, so it's less important for them. But powerpc and > sparc do use the header (in the core glibc), and most of the > architectures in the "ports" part of glibc do as well. > > Roland, Joseph, if we don't hear something definitive from the gcc > folks, I'm inclined to revert this piece back to what I had in the v1 > patch, where I provide a tile-specific byteswap.h using > __builtin_bswapNN(), so our gcc 4.4 will generate good code.
Right now it does not emit good code for MIPS 32/64 R2. Though I have patches to emit better code for that target. Thanks, Andrew Pinski