linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Edelsohn <dje@watson.ibm.com>
To: toa@pop.agri.ch
Cc: Franz Sirl <Franz.Sirl@munich.netsurf.de>,
	Linux-Dev <linuxppc-dev@lists.linuxppc.org>
Subject: Re: ppc assembler help needed
Date: Mon, 15 May 2000 14:26:28 -0400	[thread overview]
Message-ID: <200005151826.OAA26764@mal-ach.watson.ibm.com> (raw)
In-Reply-To: Message from Andreas Tobler <toa@pop.agri.ch> of "Mon, 15 May 2000 20:26:26 +0200." <3920414A.8B3AC43B@pop.agri.ch>


>>>>> 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/

      reply	other threads:[~2000-05-15 18:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-15 15:54 ppc assembler help needed Andreas Tobler
2000-05-15 16:08 ` Franz Sirl
2000-05-15 18:26   ` Andreas Tobler
2000-05-15 18:26     ` David Edelsohn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200005151826.OAA26764@mal-ach.watson.ibm.com \
    --to=dje@watson.ibm.com \
    --cc=Franz.Sirl@munich.netsurf.de \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=toa@pop.agri.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).