Thread (1 message) 1 message, 1 author, 2000-05-15

Re: ppc assembler help needed

From: David Edelsohn <hidden>
Date: 2000-05-15 18:26:28

quoted
quoted
quoted
quoted
Andreas Tobler writes:
Andreas> Franz Sirl wrote:
quoted
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help