public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: Will Newton <will.newton@linaro.org>
To: Roland McGrath <roland@hack.frob.com>
Cc: libc-ports@sourceware.org, Patch Tracking <patches@linaro.org>
Subject: Re: [PATCH, v5] ARM: Add Cortex-A15 optimized NEON and VFP memcpy routines, with IFUNC.
Date: Wed, 01 May 2013 18:43:00 -0000	[thread overview]
Message-ID: <CANu=Dmi04i3EeyzirncxsiTqiWV5nRNeg+K63jcU1rs4i50R0w@mail.gmail.com> (raw)
In-Reply-To: <20130501170134.265AC2C096@topped-with-meat.com>

On 1 May 2013 18:01, Roland McGrath <roland@hack.frob.com> wrote:
>> > If __SOFTFP__ is predefined by the compiler, then the compiler is presuming
>> > VFP support anyway.  So you can make this:
>> >
>> > #ifdef __SOFTFP__
>> >         ldr     r1, .Lmemcpy_arm
>> >         tst     r0, #HWCAP_ARM_VFP
>> >         ldrne   r1, .Lmemcpy_vfp
>> > #else
>> >         ldr     r1, .Lmemcpy_vfp
>> > #endif
>> >
>> > (and also conditionalize .Lmemcpy_arm, below).
>>
>> I'm not sure I follow the logic here, could you elaborate?
>
> I dropped a "not" in my first sentence, which might have been confusing.
> The compiler predefines __SOFTFP__ unless it's presuming VFP support.  If
> __SOFTFP__ is not defined, then the compiler is already generating code
> that effectively presumes HWCAP_ARM_VFP will be set, so you might as well
> just elide any code testing it at runtime and statically do whatever you
> would do if HWCAP_ARM_VFP were set at runtime.

Ok, that makes sense. I'll make that change.


--
Will Newton
Toolchain Working Group, Linaro

  reply	other threads:[~2013-05-01 18:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30 16:54 Will Newton
2013-04-30 17:08 ` Joseph S. Myers
2013-05-01  9:11   ` Will Newton
2013-04-30 17:18 ` Roland McGrath
2013-05-01 15:26   ` Will Newton
2013-05-01 17:01     ` Roland McGrath
2013-05-01 18:43       ` Will Newton [this message]
2013-05-02 19:54         ` Roland McGrath
2013-05-01 12:53 ` Richard Henderson
2013-05-01 16:50   ` Roland McGrath

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='CANu=Dmi04i3EeyzirncxsiTqiWV5nRNeg+K63jcU1rs4i50R0w@mail.gmail.com' \
    --to=will.newton@linaro.org \
    --cc=libc-ports@sourceware.org \
    --cc=patches@linaro.org \
    --cc=roland@hack.frob.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).