From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: In-Reply-To: <445FDF62.2030008@am.sony.com> References: <445FDF62.2030008@am.sony.com> Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <737B0293-1C5A-4ACC-B052-3B2DB8EA2206@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [patch] powerpc: remove do-nothing cpu setup routines Date: Tue, 9 May 2006 02:47:20 +0200 To: Geoff Levand Cc: Paul Mackerras , cbe-oss-dev@ozlabs.org, Arnd Bergmann , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > lwz r5,CPU_SPEC_SETUP(r4) > cmpi 0,r5,0 > add r5,r5,r3 > beqlr > mtctr r5 > bctr > > But, could this also be: > > lwz r5,CPU_SPEC_SETUP(r4) > cmpi 0,r5,0 > beqlr > add r5,r5,r3 > mtctr r5 > bctr Sure. Except it should be cmpwi cr0,r5,0 or cmpwi r5,0 -- cmpi with three arguments is not valid PowerPC assembler code. Segher