public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/redhat/heads/gcc-10-branch)] testsuite: [arm/mve] Include arm_mve.h in arm_v8_1m_mve_ok
@ 2020-04-30 22:03 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2020-04-30 22:03 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:55ba33ccd3890036c5bc0b62b279a6d103da7d99

commit 55ba33ccd3890036c5bc0b62b279a6d103da7d99
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date:   Wed Apr 22 13:53:29 2020 +0000

    testsuite: [arm/mve] Include arm_mve.h in arm_v8_1m_mve_ok
    
    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.

Diff:
---
 gcc/testsuite/ChangeLog               | 6 ++++++
 gcc/testsuite/lib/target-supports.exp | 1 +
 2 files changed, 7 insertions(+)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 512fc951a72..d172ec30b0c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 307a67ed66c..9b30bd2427f 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-30 22:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 22:03 [gcc(refs/vendors/redhat/heads/gcc-10-branch)] testsuite: [arm/mve] Include arm_mve.h in arm_v8_1m_mve_ok Jakub Jelinek

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