Re: [PATCH] Removes x86 warning messages

H. Peter Anvin (hpa@transmeta.com)
28 Oct 1999 16:24:57 GMT


Followup to: <Pine.LNX.3.95.991028082803.6412A-100000@chaos.analogic.com>
By author: "Richard B. Johnson" <root@chaos.analogic.com>
In newsgroup: linux.dev.kernel
>
> It is perfectly correct to move a longword to a segment register. This
> removes the generation of the 0x66 prefix which is more code which
> has to be fetched, slowing down execution.
>

Actually, it's not. It's just that gas improperly thinks there is a
distinction. I consider this to be a gas bug.

movw %ax,%es

... should be the *only* legal form, and it should *never* generate a
prefix.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/