linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: felipe.contreras@gmail.com (Felipe Contreras)
To: linux-arm-kernel@lists.infradead.org
Subject: 'bx lr' vs 'mov pc,lr'
Date: Mon, 14 Sep 2009 15:59:52 +0300	[thread overview]
Message-ID: <94a0d4530909140559l27ec5fddof3102a519e30819@mail.gmail.com> (raw)
In-Reply-To: <20090914073514.GA15883@pengutronix.de>

2009/9/14 Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>:
> On Mon, Sep 14, 2009 at 04:47:35AM +0300, Felipe Contreras wrote:
>> On Mon, Sep 14, 2009 at 3:20 AM, Jamie Lokier <jamie@shareable.org> wrote:
>> > Felipe Contreras wrote:
>> >> > Why do you want bx? ?bx isn't available on older CPUs.
>> >>
>> >> Isn't it faster? I don't know if it would make sense to try it on
>> >> newer CPUs.
>> >
>> > That's interesting. ?Do you know if it's faster?
>>
>> Nope, I'm assuming because of this:
>> http://newsgroups.derkeiler.com/Archive/Comp/comp.sys.arm/2006-04/msg00031.html
>
> For ARM9EJ-S the docs can be found at
>
> ? ? ? ?http://infocenter.arm.com/help/topic/com.arm.doc.ddi0222b/I1028171.html
>
> . ?bx takes 3 cycles, mov (with dest=pc) takes 4 cycles.

Couldn't we have a 'return' macro that uses the relevant one?

-- 
Felipe Contreras

      reply	other threads:[~2009-09-14 12:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-13 21:55 'bx lr' vs 'mov pc,lr' Felipe Contreras
2009-09-13 22:15 ` Daniel Silverstone
2009-09-13 22:56   ` Felipe Contreras
2009-09-13 23:01     ` Russell King - ARM Linux
2009-09-14  0:11       ` Felipe Contreras
2009-09-13 22:58 ` Russell King - ARM Linux
2009-09-14  0:11   ` Felipe Contreras
2009-09-14  0:20     ` Jamie Lokier
2009-09-14  1:47       ` Felipe Contreras
2009-09-14  7:35         ` Uwe Kleine-König
2009-09-14 12:59           ` Felipe Contreras [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=94a0d4530909140559l27ec5fddof3102a519e30819@mail.gmail.com \
    --to=felipe.contreras@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).