Messages in this thread | | | Date | Tue, 12 May 2009 17:04:08 +0200 | From | Andi Kleen <> | Subject | Re: Specific support for Intel Atom architecture |
| |
On Tue, May 12, 2009 at 07:20:14AM -0700, Ulrich Drepper wrote: > On Mon, May 4, 2009 at 12:22 AM, Andi Kleen <andi@firstfloor.org> wrote: > > This should be obsolete anyways, you can just uses CORE2. They have compatible ISAs. > > Only correct if you don't plan to use the movbe instruction. The > kernel would be the one place where I can imagine this to make sense.
The problem is that you can't express the situations where movbe is better than bswap (you need both and the old and the new value) in inline assembler in a way that gcc decides automatically.
I also doubt there are many (any?) situations in the kernel where the destruction of the old register is a problem in the kernel; e.g. the network stack normally doesn't care.
My understanding is that movbe is really mainly useful for some special situations where you run a emulator/jit for a BE ISA, but that's not something the kernel does.
-Andi
-- ak@linux.intel.com -- Speaking for myself only.
| |