testsuite: [arm/mve] Include arm_mve.h in arm_v8_1m_mve_ok
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 22 Apr 2020 13:53:29 +0000 (13:53 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 22 Apr 2020 13:56:51 +0000 (13:56 +0000)
Since arm_mve.h includes stdint.h, its use requires the presence of
the right gnu/stub-*.h, so make sure to include it when checking the
arm_v8_1m_mve_ok_nocache effective target, otherwise we can decide MVE
is supported while it's not really. This makes several tests
unsupported rather than fail.

2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
* lib/target-supports.exp
(check_effective_target_arm_v8_1m_mve_ok_nocache): Include
arm_mve.h.

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

index 512fc951a72f9b7f22cfd099971658cf43c4cdb0..d172ec30b0c6a9b1726308f3b4543cfb8d0a99d0 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>
+
+        * lib/target-supports.exp
+        (check_effective_target_arm_v8_1m_mve_ok_nocache): Include
+        arm_mve.h.
+
 2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>
 
         * gcc.target/arm/mve/intrinsics/mve_vector_float.c: Use
index 307a67ed66c6abcf2795f19347cb50b5a020f1ae..9b30bd2427f15b41ab02254ee29a88b6cf3cf54f 100644 (file)
@@ -4965,6 +4965,7 @@ proc check_effective_target_arm_v8_1m_mve_ok_nocache { } {
            #if __ARM_BIG_ENDIAN
            #error "MVE intrinsics are not supported in Big-Endian mode."
            #endif
+           #include <arm_mve.h>
         } "$flags -mthumb"] } {
             set et_arm_v8_1m_mve_flags "$flags -mthumb --save-temps"
             return 1