From: Andrew Stubbs Date: Wed, 14 Jan 2015 14:03:10 +0000 (+0000) Subject: Fix neon test fails on non-neon configs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d11e4d6320fa4ec6ac4401eb5b152d5c74d166f;p=gcc.git Fix neon test fails on non-neon configs. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_arm_neon_ok_nocache): Don't try to test Neon on ARM architures before v7. From-SVN: r219602 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3df2a2c7185..c630627d43c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-01-14 Andrew Stubbs + + * lib/target-supports.exp + (check_effective_target_arm_neon_ok_nocache): Don't try to test Neon + on ARM architures before v7. + 2015-01-14 Andrew MacLeod PR middle-end/59448 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 61bff53754b..2395ac4250f 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2592,6 +2592,11 @@ proc check_effective_target_arm_neon_ok_nocache { } { if { [check_no_compiler_messages_nocache arm_neon_ok object { #include "arm_neon.h" int dummy; + /* 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. + #endif } "$flags"] } { set et_arm_neon_flags $flags return 1