]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: arm: Use effective-target for nomve_fp_1 test
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Thu, 31 Oct 2024 18:11:57 +0000 (19:11 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 8 Nov 2024 08:59:10 +0000 (09:59 +0100)
Test uses MVE, so add effective-target arm_fp requirement.

gcc/testsuite/ChangeLog:

* g++.target/arm/mve/general-c++/nomve_fp_1.c: Use
effective-target arm_fp.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
(cherry picked from commit e8886406fac50f80a521a4100a80517e50e1c388)

gcc/testsuite/g++.target/arm/mve/general-c++/nomve_fp_1.c

index e0692ceb8c838a073553da50ae29d30fc07cca74..a2069d353cf9645aab7572dab97451369b1a30c6 100644 (file)
@@ -1,9 +1,11 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target arm_fp_ok } */
 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
 /* Do not use dg-add-options arm_v8_1m_mve, because this might expand to "",
    which could imply mve+fp depending on the user settings. We want to make
    sure the '+fp' extension is not enabled.  */
 /* { dg-options "-mfpu=auto -march=armv8.1-m.main+mve" } */
+/* { dg-add-options arm_fp } */
 
 #include <arm_mve.h>