ppc assembler help needed

David Edelsohn dje at watson.ibm.com
Tue May 16 04:26:28 EST 2000


>>>>> Andreas Tobler writes:

Andreas> Franz Sirl wrote:
>> No, cmpw 0,r5,0 compares r5 to r0, use cmpwi 0,r5,0 to make a signed
>> compare of r5 against 0

Andreas> This works, thanks. The next question is automatically in the queue:

Andreas> all functions, insX/outsX in misc.S use this cmpw 0,r5,0, shouldn't it
Andreas> be a cmpwi 0,r5,0 then?

	Presumably all of the assembly functions want to compare against
an immediate value and should use cmpwi.

Andreas> BTW, does it mind which CPU is behind? In my case it's a 601.

	cmpwi is valid for all PowerPC processors, including 601.

David

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list