public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [arm][patch] fix arm_neon_ok check on !arm_arch7
@ 2014-09-13 21:39 Andrew Stubbs
  2014-09-15  9:46 ` Richard Earnshaw
  0 siblings, 1 reply; 25+ messages in thread
From: Andrew Stubbs @ 2014-09-13 21:39 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

Hi,

I get a lot of "vect/*" and "neon-*" test failure in my armv5te testing 
because the arm_neon_ok test incorrectly detects that NEON is valid on 
arm926ej-s.

It turns out that the reason is that the compiler only disallows NEON 
for Thumb1 or soft-float configurations. Otherwise it just takes 
-mfpu=neon at face value, regardless of -march or -mcpu.

This patch limits NEON to armv7 or higher.

OK?

Andrew

[-- Attachment #2: arm_neon_ok.patch --]
[-- Type: text/x-patch, Size: 559 bytes --]

2014-09-13  Andrew Stubbs  <ams@codesourcery.com>

	gcc/
	* config/arm/arm.h (TARGET_NEON): Ensure target is v7 or higher.

Index: gcc/config/arm/arm.h
===================================================================
--- gcc/config/arm/arm.h	(revision 215228)
+++ gcc/config/arm/arm.h	(working copy)
@@ -323,6 +323,7 @@
    and TARGET_HARD_FLOAT to ensure that NEON instructions are
    available.  */
 #define TARGET_NEON (TARGET_32BIT && TARGET_HARD_FLOAT \
+		     && arm_arch7 \
 		     && TARGET_VFP && arm_fpu_desc->neon)
 
 /* Q-bit is present.  */

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2015-01-14 15:09 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-13 21:39 [arm][patch] fix arm_neon_ok check on !arm_arch7 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
2015-01-13 21:08                   ` Andrew Stubbs
2015-01-14  9:06                     ` Ramana Radhakrishnan
2015-01-14 15:25                       ` Andrew Stubbs

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).