This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/37562] [4.2] -funroll-loops destroys inline asm code for powerpc
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2008 19:06:54 -0000
- Subject: [Bug inline-asm/37562] [4.2] -funroll-loops destroys inline asm code for powerpc
- References: <bug-37562-15404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2008-09-17 19:06 -------
You can also use __builtin_bswap32 in GCC 4.3 and above which gives you the
best code generation as it understands loading from memory and if the value is
in a register already.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37562