Re: Semaphore assembly-code bug

From: Andi Kleen
Date: Fri Oct 29 2004 - 21:23:18 EST


dean gaudet <dean-list-linux-kernel@xxxxxxxxxx> writes:
>
> it's worse than that in general -- lea typically goes through the AGU
> which has either less throughput or longer latency than the ALUs...
> depending on which x86en. it's 4 cycles for a lea on p4, vs. 1 for a pop.
> it's 2 cycles for a lea on k8 vs. 1 for a pop.

On D stepping and later K8 the lea is 1 cycle latency because the
decoder optimizes the lea into an add.

-Andi

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