public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
To: Andrew Stubbs <andrew.stubbs@gmail.com>,
	 Kyrylo Tkachov <Kyrylo.Tkachov@arm.com>
Cc: James Greenhalgh <James.Greenhalgh@arm.com>,
	 Richard Earnshaw <Richard.Earnshaw@arm.com>,
	"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [arm][patch] fix arm_neon_ok check on !arm_arch7
Date: Mon, 12 Jan 2015 14:27:00 -0000	[thread overview]
Message-ID: <54B3D120.8020904@arm.com> (raw)
In-Reply-To: <54B3C935.4020507@gmail.com>

Sorry about the slow response- have been on holiday and still catching 
up on email.

On 12/01/15 13:16, Andrew Stubbs wrote:
> Ping.
>
> On 23/12/14 16:46, Andrew Stubbs wrote:
>> On 03/12/14 15:03, Andrew Stubbs wrote:
>>>> The tools have always allowed us to drop down the arch to
>>>> march=armv5te along with using -mfpu=neon. We are now changing command
>>>> line behaviour, so an inform in terms of diagnostics to the user would
>>>> be useful as it states that we don't really have mfpu=neon generating
>>>> neon code any more because of this particular case. If we are to do
>>>> this then the original patch is probably not enough as it then doesn't
>>>> handle the case of TARGET_VFP3 / TARGET_VFP5 / TARGET_NEON_FP16 /
>>>> TARGET_FP16 / TARGET_FPU_ARMV8 etc. etc. etc.
>>>
>>> I'll take a look at those shortly.
>>
>> Or, not so shortly.
>>

Sigh.


>> It seems that, on ARM, the arch/CPU setting is basically orthogonal to
>> the FPU setting, and the compiler doesn't even try to match the one to
>> the other. The assembler does the same. In fact, the testcases that
>> James refers to, that have hard-coded -march options, really do emit
>> armv4 code with Neon, say, although most probably don't have
>> vectorizable code. They only work because they're most likely executed
>> on Neon hardware.

Yes - though I'm surprised as I run an armv5te soft float only test run 
once a while on my Sheevaplug and don't see these issues. Maybe others do.

>>
>> This means that there's no obvious patch to fix the issue, in the
>> compiler. It's easy to reject Neon for pre-v7 CPUs, but that has
>> consequences, as we've seen. We'd have to have a table of fall-back FPUs
>> or something, and that doesn't seem straight-forward (and anyway, I'm
>> not sure what values to enter into that table).
>>
>> So, I've attacked the problem from the other end, and updated the
>> compiler check.
>>
>> OK to commit?

In principle ok, but I'd like a comment in there explaining why we've 
done this. Can you also post under what configurations these have been 
tested ?


Ramana

>>
>> Andrew
>

  reply	other threads:[~2015-01-12 13:50 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-13 21:39 Andrew Stubbs
2014-09-15  9:46 ` Richard Earnshaw
2014-09-15 10:56   ` Andrew Stubbs
2014-09-15 13:30     ` Richard Earnshaw
2014-09-17 11:00       ` Andrew Stubbs
2014-09-23  8:27     ` James Greenhalgh
2014-09-23 15:22       ` Stubbs, Andrew
2014-10-15 16:37         ` Jiong Wang
2014-10-15 16:59           ` Andrew Stubbs
2014-10-16 13:53             ` Jiong Wang
2014-11-07 10:35               ` Andrew Stubbs
2014-11-14 11:17                 ` Andrew Stubbs
2014-11-26 13:11                   ` Andrew Stubbs
2014-11-27 17:28                     ` Mike Stump
2014-11-27 19:29                       ` Andrew Stubbs
2014-11-28  8:42                         ` Mike Stump
2014-12-02 14:01       ` Kyrill Tkachov
2014-12-02 21:45         ` Ramana Radhakrishnan
2014-12-03 15:03           ` Andrew Stubbs
2014-12-23 17:32             ` Andrew Stubbs
2015-01-12 14:14               ` Andrew Stubbs
2015-01-12 14:27                 ` Ramana Radhakrishnan [this message]
2015-01-13 21:08                   ` Andrew Stubbs
2015-01-14  9:06                     ` Ramana Radhakrishnan
2015-01-14 15:25                       ` Andrew Stubbs

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=54B3D120.8020904@arm.com \
    --to=ramana.radhakrishnan@arm.com \
    --cc=James.Greenhalgh@arm.com \
    --cc=Kyrylo.Tkachov@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=andrew.stubbs@gmail.com \
    --cc=gcc-patches@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).