[ARM] Disable neon testing for armv7-m
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 20 Nov 2015 11:49:23 +0000 (11:49 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 20 Nov 2015 11:49:23 +0000 (11:49 +0000)
2015-11-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* lib/target-supports.exp
(check_effective_target_arm_neon_ok_nocache): Add check
for M profile.

From-SVN: r230653

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index d5042dd..1b74a99 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
+
+       * lib/target-supports.exp
+       (check_effective_target_arm_neon_ok_nocache): Add check
+       for M profile.
+
 2015-11-20  Tom de Vries  <tom@codesourcery.com>
 
        PR tree-optimization/68373
index 66fc100..3eb46f2 100644 (file)
@@ -2862,8 +2862,8 @@ proc check_effective_target_arm_neon_ok_nocache { } {
                #endif
                /* Avoid the case where a test adds -mfpu=neon, but the toolchain is
                   configured for -mcpu=arm926ej-s, for example.  */
-               #if __ARM_ARCH < 7
-               #error Architecture too old for NEON.
+               #if __ARM_ARCH < 7 || __ARM_ARCH_PROFILE == 'M'
+               #error Architecture does not support NEON.
                #endif
            } "$flags"] } {
                set et_arm_neon_flags $flags