[PATCH] powerpc: Don't use long for 32-bit temp variables in spin lock ops

Olof Johansson olof at lixom.net
Thu Jun 14 00:14:52 EST 2007


On Wed, Jun 13, 2007 at 02:33:03PM +1000, Paul Mackerras wrote:

> > Note the cmpdi at ..78 when r9 was loaded with lwarx.
> 
> That's OK; the lwarx is defined to zero-extend the value to 64 bits.
> 
> Or are you implying that cmpdi is slower than cmpwi on some 64-bit
> processors? :)

Nope, it was just seemed inconsistent to me, especially since the
preceding (asm) comparison was 32-bit.


-Olof



More information about the Linuxppc-dev mailing list