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

From: [email-masked] (Olof Johansson)
Date: Wed, 13 Jun 2007 09:14:52 -0500

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